From: Jim Meyering Date: Mon, 4 Oct 1999 05:59:37 +0000 (+0000) Subject: (__attribute__): Define to empty if GCC claims to X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5534304172dd2dd7340d565dc55cc68ad1fb288;p=pspp (__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/getdate.y b/lib/getdate.y index e67af871ee..c698584ebf 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -73,7 +73,7 @@ # include #endif -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ # define __attribute__(x) #endif 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