summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/include/obstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cc/include/obstack.h')
-rw-r--r--gnu/usr.bin/cc/include/obstack.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/cc/include/obstack.h b/gnu/usr.bin/cc/include/obstack.h
index a5db1a0..28bcd44 100644
--- a/gnu/usr.bin/cc/include/obstack.h
+++ b/gnu/usr.bin/cc/include/obstack.h
@@ -268,8 +268,11 @@ int obstack_chunk_size (struct obstack *obstack);
#define obstack_blank_fast(h,n) ((h)->next_free += (n))
-#if defined (__GNUC__) && defined (__STDC__)
-#if __GNUC__ < 2
+#if defined (__GNUC__) && defined (__STDC__) && __STDC__
+/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
+ does not implement __extension__. But that compiler doesn't define
+ __GNUC_MINOR__. */
+#if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
#define __extension__
#endif
OpenPOWER on IntegriCloud