From: Andre Noll Date: Tue, 2 Oct 2007 12:44:36 +0000 (+0200) Subject: gcc-compat.h: Remove compatibility code for gcc-2. X-Git-Tag: v0.3.0~314 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=153980b65dec0addcd5cccf4bc6b240378355735 gcc-compat.h: Remove compatibility code for gcc-2. gcc-2 is not supported any longer. --- diff --git a/gcc-compat.h b/gcc-compat.h index 0ec8fdd7..5fea55d5 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -1,4 +1,3 @@ -#if __GNUC__ >= 3 # define inline inline __attribute__ ((always_inline)) # define __noreturn __attribute__ ((noreturn)) # define __malloc __attribute__ ((malloc)) @@ -19,21 +18,6 @@ #define __printf_1_2 __printf(1,2) #define __printf_2_3 __printf(2,3) -#else - -# define inline /* no inline */ -# define __noreturn /* no noreturn */ -# define __malloc /* no malloc */ -# define __used /* no used */ -# define __a_unused /* no unused */ -# define __packed /* no packed */ -# define likely(x) (x) -# define unlikely(x) (x) -# define __printf(p,q) /* no format */ -#define __printf_1_2 -#define __printf_2_3 -#endif - # if __GNUC__ >=3 && __GNUC_MINOR__ > 3 # define __must_check __attribute__ ((warn_unused_result)) # else