X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gcc-compat.h;h=ffd714f7c7c36a085e24d20e2ecd0a680af0406a;hp=61c3c88d1c4551a965aaa22c626ddf8fabec31ba;hb=9005b5a064873fc1ec2af9fb76c61aa7cd60db9b;hpb=7870431b42795e129bfe3b4652b6d6cb5169eac7 diff --git a/gcc-compat.h b/gcc-compat.h index 61c3c88d..ffd714f7 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -1,12 +1,12 @@ -# define inline inline __attribute__ ((always_inline)) -# define __noreturn __attribute__ ((noreturn)) -# define __malloc __attribute__ ((malloc)) -# define __a_unused __attribute__ ((unused)) -# define likely(x) __builtin_expect (!!(x), 1) -# define unlikely(x) __builtin_expect (!!(x), 0) -/* - * p is the number of the "format string" parameter, and q is - * the number of the first variadic parameter +#define inline inline __attribute__ ((always_inline)) +#define __noreturn __attribute__ ((noreturn)) +#define __malloc __attribute__ ((malloc)) +#define __a_unused __attribute__ ((unused)) +#define __a_aligned(alignment) __attribute__((__aligned__(alignment))) + +/* + * p is the number of the "format string" parameter, and q is + * the number of the first variadic parameter. */ # define __printf(p,q) __attribute__ ((format (printf, p, q))) /*