summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-06-11 07:11:31 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-06-11 07:11:31 +0000
commitff276995ff38a9615a1f53249e1acf624e18d910 (patch)
tree74a4b5cba6b6bf81cb957312e9d5a04e6c58cb3c /lib/getdate.y
parentd9f0cce0f493db842bdb5a59fb1f26921fc89d21 (diff)
downloadcoreutils-ff276995ff38a9615a1f53249e1acf624e18d910.tar.xz
(__attribute__): Don't define if already defined.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index cfa299f38..018504825 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -87,8 +87,10 @@
of `digit' even when the host does not conform to POSIX. */
#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
-# define __attribute__(x)
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
+# define __attribute__(x)
+# endif
#endif
#ifndef ATTRIBUTE_UNUSED