]> git.saurik.com Git - bison.git/commitdiff
* src/system.h: Need to define __attribute__ away for non-GCC
authorMarc Autret <autret_m@epita.fr>
Sun, 20 Jan 2002 10:59:44 +0000 (10:59 +0000)
committerMarc Autret <autret_m@epita.fr>
Sun, 20 Jan 2002 10:59:44 +0000 (10:59 +0000)
compilers as well (i.e. the vendor C compiler).
Suggested by Albert Chin-A-Young.

ChangeLog
src/system.h

index e8ac01ea32b5b8ba4693af67d9d4c78fb40f5c42..522ebc29f1e386e71d547be01cd743f30934199a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-20  Marc Autret  <marc@gnu.org>
+
+       * src/system.h: Need to define __attribute__ away for non-GCC 
+       compilers as well (i.e. the vendor C compiler).
+       Suggested by Albert Chin-A-Young.
+
 2002-01-19  Marc Autret  <marc@gnu.org>
 
        * tests/output.at: New test.
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.  */
-# 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