diff options
| author | Alexander Barton <alex@barton.de> | 2004-03-15 19:26:39 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-03-15 19:26:39 +0000 |
| commit | f697923c4876dc682b0801ad319f517e0ab29362 (patch) | |
| tree | 0cef747908dce689adc4b2b1f46aa0e3ef3b838e /src | |
| parent | af77ce70b66f14889706a9ce104bcdeae86ad0f9 (diff) | |
| download | ngircd-f697923c4876dc682b0801ad319f517e0ab29362.tar.gz ngircd-f697923c4876dc682b0801ad319f517e0ab29362.zip | |
Fixed detection of GNU C version and usability of __attribute__.
Diffstat (limited to 'src')
| -rw-r--r-- | src/portab/portab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h index edf2ca86..cb50bbd6 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.16 2004/01/17 03:22:46 alex Exp $ + * $Id: portab.h,v 1.17 2004/03/15 19:26:39 alex Exp $ * * Portability functions and declarations (header for libngbportab). */ @@ -27,7 +27,7 @@ /* compiler features */ -#if (__GNUC__ > 2 || (__GNUC == 2 && __GNUC_MINOR >= 7)) +#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) # define PUNUSED(x) __attribute__ ((unused)) x # define UNUSED __attribute__ ((unused)) #else |