(__attribute__): Define to empty if GCC claims to
authorJim Meyering <jim@meyering.net>
Mon, 4 Oct 1999 05:59:37 +0000 (05:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 4 Oct 1999 05:59:37 +0000 (05:59 +0000)
be before 2.8; this is needed for OPENStep 4.2 cc.  Also,
define to empty if strict ANSI.

lib/getdate.y
lib/xalloc.h

index e67af87..c698584 100644 (file)
@@ -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
 
index 38ae1d0..c9bbb13 100644 (file)
@@ -27,7 +27,7 @@
 # endif
 
 # ifndef __attribute__
-#  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 #   define __attribute__(x)
 #  endif
 # endif