From: Alexander Barton Date: Mon, 15 Mar 2004 19:26:39 +0000 (+0000) Subject: Fixed detection of GNU C version and usability of __attribute__. X-Git-Tag: rel-0-8-0-pre1~26 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git;a=commitdiff_plain;h=f697923c4876dc682b0801ad319f517e0ab29362 Fixed detection of GNU C version and usability of __attribute__. --- 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