mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Use "__attribute__" only if gcc is at least version 2.7
This commit is contained in:
		| @@ -8,7 +8,7 @@ | |||||||
|  * (at your option) any later version. |  * (at your option) any later version. | ||||||
|  * Please read the file COPYING, README and AUTHORS for more information. |  * 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). |  * Portability functions and declarations (header for libngbportab). | ||||||
|  */ |  */ | ||||||
| @@ -21,13 +21,13 @@ | |||||||
| #include "config.h" | #include "config.h" | ||||||
|  |  | ||||||
| #ifdef HAVE_SYS_TYPES_H | #ifdef HAVE_SYS_TYPES_H | ||||||
| #include <sys/types.h> | # include <sys/types.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  |  | ||||||
| /* compiler features */ | /* compiler features */ | ||||||
|  |  | ||||||
| #ifdef __GNUC__ | #if (__GNUC__ > 2 || (__GNUC == 2 && __GNUC_MINOR >= 7)) | ||||||
| # define PUNUSED(x) __attribute__ ((unused)) x | # define PUNUSED(x) __attribute__ ((unused)) x | ||||||
| # define UNUSED     __attribute__ ((unused)) | # define UNUSED     __attribute__ ((unused)) | ||||||
| #else | #else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton