diff: odbc/Mmakefile: add `--no-ansi' for // comments

Fergus Henderson fjh at hydra.cs.mu.oz.au
Tue Oct 7 22:08:50 AEST 1997


extras/odbc/Mmakefile:
	Add `--no-ansi' to MGNUCFLAGS, to allow recognition of
	C++-style "//" comments with gcc >= 2.7.1.

Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/mercury/extras/odbc/Mmakefile,v
retrieving revision 1.1
diff -u -r1.1 Mmakefile
--- Mmakefile	1997/10/02 01:51:34	1.1
+++ Mmakefile	1997/10/07 12:07:07
@@ -45,7 +45,10 @@
 
 #-----------------------------------------------------------------------------#
 
-MGNUCFLAGS=-D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
+# `--no-ansi' is needed because the ODBC header files include C++-style
+# "//" comments.  `--no-ansi' allows recognition of C++-style "//" comments,
+# presuming you have gcc version 2.7.1 or greater.
+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
 
 #-----------------------------------------------------------------------------#
 #-----------------------------------------------------------------------------#

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list