[m-rev.] trivial diff: avoid using MR_GNUC in a spot
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Aug 9 21:06:50 AEST 2011
Branches: main, 11.07
runtime/mercury_getopt.c:
Don't use MR_GNUC here since we don't #include the usual
Mercury headers here and it will always be undefined.
Julien.
Index: runtime/mercury_getopt.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_getopt.c,v
retrieving revision 1.4
diff -u -r1.4 mercury_getopt.c
--- runtime/mercury_getopt.c 1 Aug 2011 07:06:20 -0000 1.4
+++ runtime/mercury_getopt.c 9 Aug 2011 11:02:46 -0000
@@ -226,7 +226,7 @@
/* If using GCC, we can safely declare strlen this way.
If not using GCC, it is ok not to declare it. */
-#ifdef MR_GNUC
+#ifdef __GNUC__
/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
That was relevant to code that was here before. */
#if !defined (__STDC__) || !__STDC__
@@ -234,7 +234,7 @@
and has done so at least since version 2.4.5. -- rms. */
extern int strlen (const char *);
#endif /* not __STDC__ */
-#endif /* MR_GNUC */
+#endif /* __GNUC__ */
#endif /* not __GNU_LIBRARY__ */
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list