From: Jim Meyering Date: Mon, 4 Oct 1999 06:02:41 +0000 (+0000) Subject: (__attribute__): Define to empty if GCC claims to X-Git-Tag: FILEUTILS-4_0j-trial~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0226382b34debd1d6d48df8084ef7be03c469620;p=thirdparty%2Fcoreutils.git (__attribute__): Define to empty if GCC claims to be before 2.8; this is needed for OPENStep 4.2 cc. Also, define to empty if strict ANSI. --- diff --git a/lib/xalloc.h b/lib/xalloc.h index 38ae1d07d3..c9bbb13862 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -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 diff --git a/src/sys2.h b/src/sys2.h index d051c48b13..c7260aa010 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -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