Fixed detection of GNU C version and usability of __attribute__.
This commit is contained in:
parent
af77ce70b6
commit
f697923c48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue