bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buglet in getdate.y


From: Larry Jones
Subject: Buglet in getdate.y
Date: Sat, 10 Jun 2006 20:33:56 -0400 (EDT)

If __attribute__ is already defined (in config.h), getdate.y shouldn't
redefine it.  The obvious patch:

Index: getdate.y
===================================================================
RCS file: /cvsroot/cvs/ccvs/lib/getdate.y,v
retrieving revision 1.35
diff -u -r1.35 getdate.y
--- getdate.y   25 Apr 2006 14:48:46 -0000      1.35
+++ getdate.y   11 Jun 2006 00:31:39 -0000
@@ -88,7 +88,9 @@
 #define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
 
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
-# define __attribute__(x)
+# ifndef __attribute__
+#  define __attribute__(x)
+# endif
 #endif
 
 #ifndef ATTRIBUTE_UNUSED

-Larry Jones

There's never enough time to do all the nothing you want. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]