OSDN Git Service

* gansidecl.h (const): Check __STDC__ before undef'ing `const'.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Nov 2000 21:09:25 +0000 (21:09 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Nov 2000 21:09:25 +0000 (21:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37590 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gansidecl.h

index 764578f..3737964 100644 (file)
@@ -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
index 4bd3bcc..c64cee5 100644 (file)
@@ -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