summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-12-08 22:27:11 -0800
committerKristian Høgsberg <krh@bitplanet.net>2013-12-08 22:27:11 -0800
commit8d344a05480ba105a25517507ac44b4cd1dd1749 (patch)
treee7ffc12029a34d447cb7e794fa27230ee70730c6 /src
parent1e65840b6103197a684a551925a58fb1ae6c40e3 (diff)
shell: Make sure the shell implementation and protocol versions match
Diffstat (limited to 'src')
-rw-r--r--src/compositor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor.h b/src/compositor.h
index 6bd637ed..a1613451 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -45,6 +45,10 @@ extern "C" {
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
+#ifndef static_assert
+#define static_assert(cond, msg)
+#endif
+
#define container_of(ptr, type, member) ({ \
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})