chiark / gitweb /
util: close all fds before freezing execution
[elogind.git] / src / macro.h
index 85a7fbccfdb4a8dd153780368859ebac08657047..996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1 100644 (file)
@@ -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));