* getdate.y (__attribute__): Don't define if already defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2006 07:12:27 +0000 (07:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2006 07:12:27 +0000 (07:12 +0000)
Problem reported by Larry Jones.
* utimens.c (__attribute__): Likewise.

lib/ChangeLog
lib/getdate.y
lib/utimens.c

index cca7be8..6c3d7dd 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getdate.y (__attribute__): Don't define if already defined.
+       Problem reported by Larry Jones.
+       * utimens.c (__attribute__): Likewise.
+
 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        * regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
index cfa299f..0185048 100644 (file)
    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
index 11f04d1..1489df0 100644 (file)
@@ -54,8 +54,10 @@ struct utimbuf
 # endif
 #endif
 
-#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