]> git.saurik.com Git - bison.git/blobdiff - data/glr.c
POSIX: warn if %prec's token was not defined.
[bison.git] / data / glr.c
index ec483fb1aaf24621aeb5feb20d1a469dc4f62751..2a130a6b50c2a89c33d195b412e7b4fcbe441022 100644 (file)
@@ -310,7 +310,8 @@ b4_percent_code_get[]dnl
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
 # if (! defined __GNUC__ || __GNUC__ < 2 \
-      || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__)
+      || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) \
+      || (defined __STRICT_ANSI__ && __STRICT_ANSI__))
 #  define __attribute__(Spec) /* empty */
 # endif
 #endif