X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmacro.h;h=996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1;hp=85a7fbccfdb4a8dd153780368859ebac08657047;hb=720ce21d444f6497299c4c99a76fda546b06716a;hpb=9a60da2834074d970ca063c210fe9d2f05c70532 diff --git a/src/macro.h b/src/macro.h index 85a7fbccf..996b7c2ed 100644 --- a/src/macro.h +++ b/src/macro.h @@ -47,6 +47,9 @@ #define _weakref_(x) __attribute__((weakref(#x))) #define _introspect_(x) __attribute__((section("introspect." x))) +#define XSTRINGIFY(x) #x +#define STRINGIFY(x) XSTRINGIFY(x) + /* Rounds up */ static inline size_t ALIGN(size_t l) { return ((l + sizeof(void*) - 1) & ~(sizeof(void*) - 1));