X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fcompiler.h;h=85b58b1d90dc86e9f002c36099d156148cec50f6;hb=941370dda9f22ca42e1d5b3cd580d7e7091d40bc;hp=9e23e238efa2c30ec52e9be5a20f50b7ef097876;hpb=0a2617527c9b46a587a8f34571a54347cd5c4b5a;p=coloredstderr%2Fcoloredstderr.git diff --git a/src/compiler.h b/src/compiler.h index 9e23e23..85b58b1 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -20,15 +20,16 @@ #ifndef COMPILER_H #define COMPILER_H 1 -/* Prevent/force inlining. Used to improve performance. */ -#undef __noinline -#undef __always_inline #ifdef HAVE___ATTRIBUTE__ -# define __noinline __attribute__((noinline)) -# define __always_inline __attribute__((always_inline)) +/* Prevent/force inlining. Used to improve performance. */ +# define noinline __attribute__((noinline)) +# define always_inline __attribute__((always_inline)) +/* Unused parameter. */ +# define unused __attribute__((unused)) #else -# define __noinline -# define __always_inline +# define noinline +# define always_inline +# define unused #endif /* Branch prediction information for the compiler. */