]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/portab/portab.h
Fixed detection of GNU C version and usability of __attribute__.
[ngircd-alex.git] / src / portab / portab.h
index edf2ca86681abaabb001e95be486a3946270929d..cb50bbd62eaa296c3d1c7f582f28a3d85e51d4cc 100644 (file)
@@ -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