* 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 10:59:44 +00:00
parent 7700a71572
commit 64fa1ea1b8
2 changed files with 8 additions and 1 deletions

View File

@@ -138,7 +138,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