[m-dev.] for review: shut up a warning
Zoltan Somogyi
zs at cs.mu.OZ.AU
Thu Jan 18 16:16:15 AEDT 2001
Shut up a warning.
browser/dl.m:
Add #include <string.h>.
browser/Mmakefile:
Add --no-ansi to MGNUC_FLAGS, to allow string.h to define strdup.
Zoltan.
cvs diff: Diffing .
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/browser/Mmakefile,v
retrieving revision 1.12
diff -u -b -r1.12 Mmakefile
--- Mmakefile 2000/08/17 05:30:56 1.12
+++ Mmakefile 2001/01/18 05:08:32
@@ -52,7 +52,7 @@
MCG = $(M_ENV) $(MC) --compile-to-c
MCS = $(M_ENV) $(MC) --split-c-files -c --cflags "$(ALL_CFLAGS)"
MGNUC = $(M_ENV) $(SCRIPTS_DIR)/mgnuc
-MGNUCFLAGS = $(DLL_CFLAGS)
+MGNUCFLAGS = $(DLL_CFLAGS) --no-ansi
LDFLAGS = -L$(LIBRARY_DIR) -L$(RUNTIME_DIR) -L$(BOEHM_GC_DIR)
LDLIBS = -l$(STD_LIB_NAME) -l$(RT_LIB_NAME) \
` case "$(GRADE)" in \
Index: dl.m
===================================================================
RCS file: /home/mercury1/repository/mercury/browser/dl.m,v
retrieving revision 1.7
diff -u -b -r1.7 dl.m
--- dl.m 2001/01/18 01:18:25 1.7
+++ dl.m 2001/01/18 05:08:33
@@ -60,8 +60,9 @@
:- implementation.
:- import_module std_util, require, string, list, int.
-:- pragma c_header_code("
+:- pragma foreign_decl("C", "
#include <stdio.h>
+ #include <string.h>
#include ""mercury_conf.h""
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list