X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gcc-compat.h;h=ba1d82ead77ac6ae937a15a4e691ba8afc2f21b2;hp=7367173aac419e9abd6232408d446a01cbf35d33;hb=748d1368bc96dd7e1af879df1ea41b4d52842f7e;hpb=a694ab16b6ff43b545ccd530360b7224433a5b76 diff --git a/gcc-compat.h b/gcc-compat.h index 7367173a..ba1d82ea 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -2,13 +2,14 @@ #define __noreturn __attribute__ ((noreturn)) #define __malloc __attribute__ ((malloc)) #define __a_unused __attribute__ ((unused)) -#define __aligned(alignment) __attribute__((__aligned__(alignment))) +#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))) +# define __a_const __attribute__ ((const)) /* * 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. @@ -23,3 +24,4 @@ # endif #define _static_inline_ static inline +