]> git.ozlabs.org Git - petitboot/blobdiff - lib/util/util.h
ui/ncurses: nc-menu.h needs assert.h
[petitboot] / lib / util / util.h
index 8c08dc52eafd7e812949c78fba01e7f8b051a674..ba5ea4f677776fbc0b9c48c38003c21203033848 100644 (file)
@@ -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 */