summaryrefslogtreecommitdiff
path: root/src/shared/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-10 01:45:43 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-12-11 13:45:16 -0500
commit11d61581aa4cb74f657fe252132d6f757a88d41f (patch)
tree9ca3c85950f36834e9f44040cbe8f15cc39ff5dc /src/shared/macro.h
parent96ed47b845e22a730e3b7f567f60d552aa8981e6 (diff)
core: unify how we iterate over inotify events
Let's add some syntactic sugar for iterating through inotify events, and use it everywhere. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r--src/shared/macro.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index e2c519cf89..41fe61fb68 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -35,6 +35,7 @@
#define _likely_(x) (__builtin_expect(!!(x),1))
#define _unlikely_(x) (__builtin_expect(!!(x),0))
#define _public_ __attribute__ ((visibility("default")))
+#define _alignas_(x) __attribute__((aligned(__alignof(x))))
#define _cleanup_(x) __attribute__((cleanup(x)))
/* Temporarily disable some warnings */