chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mount-setup: mount /dev/pts with mode=620,gid=5 by default and make GID overridable...
[elogind.git]
/
src
/
macro.h
diff --git
a/src/macro.h
b/src/macro.h
index 85a7fbccfdb4a8dd153780368859ebac08657047..996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1 100644
(file)
--- 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 _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));
/* Rounds up */
static inline size_t ALIGN(size_t l) {
return ((l + sizeof(void*) - 1) & ~(sizeof(void*) - 1));