(__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 e67af871ee5892b438de92401be0ace623ed08ae..c698584ebf3100dcf7f8eefc995e3f4c0e232e31 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 38ae1d07d3d0ba10be1c1fd61b3567390f27c2ee..c9bbb13862c7175d4a9737a33a98d25ec710f9d3 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