From 44ea3fbdf5abd13db62696e11e8177e1722e6fc8 Mon Sep 17 00:00:00 2001 From: Marc Autret Date: Sun, 20 Jan 2002 11:34:02 +0000 Subject: [PATCH] * src/system.h: Need to define __attribute__ away for non-GCC compilers as well (i.e. the vendor C compiler). Suggested by Albert Chin-A-Young. --- ChangeLog | 6 ++++++ src/system.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index de5c3c72..1e67823f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-01-20 Marc Autret + + * src/system.h: Need to define __attribute__ away for non-GCC + compilers as well (i.e. the vendor C compiler). + Suggested by Albert Chin-A-Young. + 2002-01-11 Tim Van Holder * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the diff --git a/src/system.h b/src/system.h index 52b8cf7a..b66f70aa 100644 --- a/src/system.h +++ b/src/system.h @@ -134,7 +134,8 @@ void *memrchr PARAMS ((const void *s, int c, size_t n)); #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ +# if !defined (__GNUC__) || __GNUC__ < 2 || \ +(__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes -- 2.45.2