aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.in
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-01-25 21:56:21 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-01-25 21:56:21 +0000
commit78e0ba39dcad4d5deb84479ccd108a89f53ea853 (patch)
treea43596b0de85765570d75dbad446df2dd4110a0f /gcc/config.in
parent05dba9ee7c8fb0cb0135c6120a21738503a3fe27 (diff)
downloadgcc-78e0ba39dcad4d5deb84479ccd108a89f53ea853.zip
gcc-78e0ba39dcad4d5deb84479ccd108a89f53ea853.tar.gz
gcc-78e0ba39dcad4d5deb84479ccd108a89f53ea853.tar.bz2
acconfig.h: Define `const' to the empty string if neither __STDC__ nor __cplusplus is defined.
* acconfig.h: Define `const' to the empty string if neither __STDC__ nor __cplusplus is defined. * config.in: Regenerated. From-SVN: r39272
Diffstat (limited to 'gcc/config.in')
-rw-r--r--gcc/config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in
index 497820e..a433687 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -452,3 +452,15 @@
/* Define to 1 if you want to enable namespaces (-fhonor-std) by default. */
#undef ENABLE_STD_NAMESPACE
+
+/* Bison unconditionally undefines `const' if neither `__STDC__' nor
+ __cplusplus are defined. That's a problem since we use `const' in
+ the GCC headers, and the resulting bison code is therefore type
+ unsafe. Thus, we must match the bison behavior here. */
+
+#ifndef __STDC__
+#ifndef __cplusplus
+#undef const
+#define const
+#endif
+#endif