summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 8c08dc5..ba5ea4f 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -44,5 +44,8 @@
_max_a > _max_b ? _max_a : _max_b; \
})
+#define build_assert(x) \
+ do { (void)sizeof(char[(x)?1:-1]); } while (0)
+
#endif /* UTIL_H */
OpenPOWER on IntegriCloud