From: Marc Autret Date: Sun, 20 Jan 2002 10:59:44 +0000 (+0000) Subject: * src/system.h: Need to define __attribute__ away for non-GCC X-Git-Tag: BISON-1_32~10 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/64fa1ea1b8c0fef68069107e45570bba5dd8a54b?ds=inline * 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. --- diff --git a/ChangeLog b/ChangeLog index e8ac01ea..522ebc29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-01-20 Marc Autret + + * 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 * tests/output.at: New test. diff --git a/src/system.h b/src/system.h index feffaee5..8d480333 100644 --- a/src/system.h +++ b/src/system.h @@ -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