1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-02 22:41:42 +02:00

(__attribute__): Don't define if already defined.

This commit is contained in:
Paul Eggert
2006-06-11 07:11:31 +00:00
parent d9f0cce0f4
commit ff276995ff
3 changed files with 14 additions and 4 deletions
+6
View 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-10 Jim Meyering <jim@meyering.net>
Apply this change from gnulib:
+4 -2
View File
@@ -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
+4 -2
View 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