aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 484ce03..d4bf337 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -29,6 +29,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "cpplib.h"
#include "cpphash.h"
+#ifndef STDC_0_IN_SYSTEM_HEADERS
+#define STDC_0_IN_SYSTEM_HEADERS 0 /* Boolean macro. */
+#endif
+
struct cpp_macro
{
cpp_hashnode **params; /* Parameters, if any. */
@@ -189,11 +193,9 @@ builtin_macro (pfile, token)
{
int stdc = 1;
-#ifdef STDC_0_IN_SYSTEM_HEADERS
- if (CPP_IN_SYSTEM_HEADER (pfile)
+ if (STDC_0_IN_SYSTEM_HEADERS && CPP_IN_SYSTEM_HEADER (pfile)
&& pfile->spec_nodes.n__STRICT_ANSI__->type == NT_VOID)
stdc = 0;
-#endif
make_number_token (pfile, token, stdc);
}
break;