aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-11-20 21:09:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-11-20 21:09:25 +0000
commit250333d0e00e17db505275183cb330900938a476 (patch)
tree72c542227683a521738bd14a1fe9a1bb4143b84c
parent1d7ff272c796a4fa6e25fef75aaa49d7d0a73f72 (diff)
downloadgcc-250333d0e00e17db505275183cb330900938a476.zip
gcc-250333d0e00e17db505275183cb330900938a476.tar.gz
gcc-250333d0e00e17db505275183cb330900938a476.tar.bz2
* gansidecl.h (const): Check __STDC__ before undef'ing `const'.
From-SVN: r37590
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gansidecl.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 764578f..3737964 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
+
2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
* c-typeck.c (build_conditional_expr): When merging type
diff --git a/gcc/gansidecl.h b/gcc/gansidecl.h
index 4bd3bcc..c64cee5 100644
--- a/gcc/gansidecl.h
+++ b/gcc/gansidecl.h
@@ -35,7 +35,9 @@ Boston, MA 02111-1307, USA. */
gcc header files in case they use these keywords. Otherwise
conflicts might occur. */
#if (GCC_VERSION >= 2007)
-# undef const
+# ifdef __STDC__
+# undef const
+# endif
# undef inline
# define inline __inline__ /* Modern gcc can use `__inline__' freely. */
# ifndef HAVE_LONG_DOUBLE