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

lib/xalloc.h
src/sys2.h

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
index d051c48..c7260aa 100644 (file)
@@ -358,7 +358,7 @@ char *base_name PARAMS ((char const *));
 # define IF_LINT(Code) /* empty */
 #endif
 
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 # define __attribute__(x)
 #endif