]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(__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 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
index d051c48b1370a7b5a9b1294963e2aeea78eb8967..c7260aa010c15776dd70e36a2bce57241988462d 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