From c7539ced189392b73b76798a5cb865b59ab1283f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Jan 2013 15:48:57 +0100 Subject: [PATCH] utils.h: get rid of the duplicate BUILD_BUG_ON definition, use the one from libubox Signed-off-by: Felix Fietkau --- utils.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/utils.h b/utils.h index 048ad8f..174e825 100644 --- a/utils.h +++ b/utils.h @@ -19,17 +19,7 @@ #include #include #include - -#ifndef __OPTIMIZE__ -#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) -#else -extern int __build_bug_on_failed; -#define BUILD_BUG_ON(condition) \ - do { \ - ((void)sizeof(char[1 - 2*!!(condition)])); \ - if (condition) __build_bug_on_failed = 1; \ - } while(0) -#endif +#include static inline bool blobmsg_get_bool_default(struct blob_attr *attr, bool val) { -- 2.25.1