summaryrefslogtreecommitdiff
path: root/src/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-04 01:58:38 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-04 01:58:38 +0100
commitbef2733fae665e880da6ea011b1f918e6900bb42 (patch)
tree2f9aa2b9eb5b9e23fd97a317de5aee066abe02ff /src/macro.h
parent4c00bf25614779a58ca57dfe8e2c477c926c5c2b (diff)
mount-setup: mount /dev/pts with mode=620,gid=5 by default and make GID overridable via configure switch
Diffstat (limited to 'src/macro.h')
-rw-r--r--src/macro.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macro.h b/src/macro.h
index 85a7fbccfd..996b7c2ed1 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));