summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/built_in.h b/built_in.h
index fa2f0c8..ea81257 100644
--- a/built_in.h
+++ b/built_in.h
@@ -153,6 +153,10 @@ typedef uint8_t u8;
# define build_bug_on_zero(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
#endif
+#ifndef build_bug_on
+# define build_bug_on(e) ((void)sizeof(char[1 - 2*!!(e)]))
+#endif
+
#ifndef bug_on
# define bug_on(cond) assert(!(cond))
#endif