diff options
| author | Alexander Barton <alex@barton.de> | 2004-01-17 03:22:46 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-01-17 03:22:46 +0000 |
| commit | c53903eb3fe94a6ee41d255f6b3ed01f50eb1a05 (patch) | |
| tree | 665351a1ffe76c25e108c6bbbbb4519e8fca4eb5 /src | |
| parent | 57c7e2362284c8c9937f32944ec985b53b1b07d6 (diff) | |
| download | ngircd-c53903eb3fe94a6ee41d255f6b3ed01f50eb1a05.tar.gz ngircd-c53903eb3fe94a6ee41d255f6b3ed01f50eb1a05.zip | |
Use "__attribute__" only if gcc is at least version 2.7
Diffstat (limited to 'src')
| -rw-r--r-- | src/portab/portab.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h index dc0a4f92..edf2ca86 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: portab.h,v 1.15 2003/03/31 19:01:02 alex Exp $ + * $Id: portab.h,v 1.16 2004/01/17 03:22:46 alex Exp $ * * Portability functions and declarations (header for libngbportab). */ @@ -21,13 +21,13 @@ #include "config.h" #ifdef HAVE_SYS_TYPES_H -#include <sys/types.h> +# include <sys/types.h> #endif /* compiler features */ -#ifdef __GNUC__ +#if (__GNUC__ > 2 || (__GNUC == 2 && __GNUC_MINOR >= 7)) # define PUNUSED(x) __attribute__ ((unused)) x # define UNUSED __attribute__ ((unused)) #else |