From e5534304172dd2dd7340d565dc55cc68ad1fb288 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Oct 1999 05:59:37 +0000 Subject: [PATCH] (__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. --- lib/getdate.y | 2 +- lib/xalloc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2