summaryrefslogtreecommitdiff
path: root/flex.skl
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2006-03-21 02:17:56 +0000
committerJohn Millaway <john43@users.sourceforge.net>2006-03-21 02:17:56 +0000
commit81351ccb95e44db2c7d161c172b8f6e280ae457a (patch)
tree2f91bff99af47bc24bddb2c0872efb1eaea8b0bd /flex.skl
parent752a1f673c80aa00a250b7658ec24600d202d0d5 (diff)
Relaxed tests for __STDC__ and __STDC_VERSION__ to cope with bugs in GCC and Sun cc.
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl5
1 files changed, 3 insertions, 2 deletions
diff --git a/flex.skl b/flex.skl
index 683ead6..482d76c 100644
--- a/flex.skl
+++ b/flex.skl
@@ -200,11 +200,12 @@ m4preproc_include(`flexint.h')
#else /* ! __cplusplus */
-#if __STDC__
+/* C99 requires __STDC__ to be defined as 1. */
+#if defined (__STDC__)
#define YY_USE_CONST
-#endif /* __STDC__ */
+#endif /* defined (__STDC__) */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST