X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmacro.h;h=996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1;hp=85a7fbccfdb4a8dd153780368859ebac08657047;hb=bef2733fae665e880da6ea011b1f918e6900bb42;hpb=4c00bf25614779a58ca57dfe8e2c477c926c5c2b 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));