X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmacro.h;h=0874102ece6afa10cdebd0031120532a3828b5c8;hb=1210bc667d2d133814a0eb3cbcfcfb7e721fba9f;hp=ac61b495883dc754f124010428e2b5e36302db78;hpb=bdd29249a882e599e5e365536372d08dee398cd4;p=elogind.git diff --git a/src/shared/macro.h b/src/shared/macro.h index ac61b4958..0874102ec 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -28,6 +28,7 @@ #include #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b))) +#define _alloc_(...) __attribute__ ((alloc_size(__VA_ARGS__))) #define _sentinel_ __attribute__ ((sentinel)) #define _noreturn_ __attribute__((noreturn)) #define _unused_ __attribute__ ((unused))