X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fcompiler.h;h=5ede8b21802e3610eb4385640948feb5102896c9;hb=217e8c8bc5fa8c22221514a320d6edeb1c2a101f;hp=9e23e238efa2c30ec52e9be5a20f50b7ef097876;hpb=0a2617527c9b46a587a8f34571a54347cd5c4b5a;p=coloredstderr%2Fcoloredstderr.git diff --git a/src/compiler.h b/src/compiler.h index 9e23e23..5ede8b2 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -21,14 +21,14 @@ #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)) +# define noinline __attribute__((noinline)) +# define always_inline __attribute__((always_inline)) +# define unused __attribute__((unused)) #else -# define __noinline -# define __always_inline +# define noinline +# define always_inline +# define unused #endif /* Branch prediction information for the compiler. */