summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-10-04 05:59:37 +0000
committerJim Meyering <jim@meyering.net>1999-10-04 05:59:37 +0000
commit1ca4f162fa8c80b0bea7de3cf6becb0982ce0c83 (patch)
treeac9945fb04244a1c7641d654fb83f0480df933ec
parent84928ec02d7082f997cdc103af599bd4a0d60f31 (diff)
downloadcoreutils-1ca4f162fa8c80b0bea7de3cf6becb0982ce0c83.tar.xz
(__attribute__): Define to empty if GCC claims to
be before 2.8; this is needed for OPENStep 4.2 cc. Also, define to empty if strict ANSI.
-rw-r--r--lib/getdate.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index e67af871e..c698584eb 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -73,7 +73,7 @@
# include <string.h>
#endif
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)
#endif