X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=gcc-compat.h;h=1ce032da387f721059014ea5eafc102294d134b3;hp=a15b0cef5c0f4b10672ab8a620429438baa1e1c2;hb=45ae697d187c12a7ed40ae71b6a8adeda4b32b6c;hpb=e1f886f9d8e4386ecbca292ecb418440434a13e0 diff --git a/gcc-compat.h b/gcc-compat.h index a15b0ce..1ce032d 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -1,25 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #define HAVE_GNUC(maj, min) \ defined(__GNUC__) && \ (__GNUC__ > maj || (__GNUC__ == maj && __GNUC_MINOR__ >= min)) -#if HAVE_GNUC(2,5) -# define __noreturn __attribute__ ((noreturn)) -#else -# define __noreturn -#endif - #if HAVE_GNUC(3,0) # define __malloc __attribute__ ((malloc)) #else # define __malloc #endif -#if HAVE_GNUC(2,7) -# define __a_unused __attribute__ ((unused)) -#else -# define __a_unused -#endif - /* * p is the number of the "format string" parameter, and q is * the number of the first variadic parameter @@ -30,17 +19,10 @@ # define __printf(p,q) #endif -/* - * as direct use of __printf(p,q) confuses doxygen, here are two extra macros - * for those values p,q that are actually used by paraslash. - */ #define __printf_1_2 __printf(1,2) -#define __printf_2_3 __printf(2,3) #if HAVE_GNUC(3,3) # define __must_check __attribute__ ((warn_unused_result)) #else # define __must_check /* no warn_unused_result */ #endif - -#define _static_inline_ static inline