* 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.
This commit is contained in:
Marc Autret
2002-01-20 11:34:02 +00:00
parent 338963d177
commit 44ea3fbdf5
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2002-01-20 Marc Autret <marc@gnu.org>
* 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 <tim.van.holder@pandora.be>
* lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the

View File

@@ -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