From ab3964db4e75e34f6f9347406c5fd2bced04f2dd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 13 Oct 2015 14:50:20 +0200 Subject: libbb: introduce kernel-style BUILD_BUG_ON() Signed-off-by: Denys Vlasenko --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index a8ceb44..5a270cd 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1901,6 +1901,7 @@ extern const char bb_default_login_shell[] ALIGN1; #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) +#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) /* We redefine ctype macros. Unicode-correct handling of char types -- cgit v1.1