]> git.saurik.com Git - bison.git/blobdiff - src/system.h
* tests/regression.at, tests/torture.at, tests/calc.at: Adjust to
[bison.git] / src / system.h
index feffaee527b6766a00405e1e11896303e4128e96..8d480333b61f45298cea700fd0bfece8cd5f5f4d 100644 (file)
@@ -138,7 +138,8 @@ void *memrchr PARAMS ((const void *s, int c, size_t n));
 
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
 
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+# if !defined (__GNUC__) || __GNUC__ < 2 || \
+(__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
 #  define __attribute__(Spec) /* empty */
 # endif
 /* The __-protected variants of `format' and `printf' attributes
 #  define __attribute__(Spec) /* empty */
 # endif
 /* The __-protected variants of `format' and `printf' attributes