From: Felix Fietkau Date: Sat, 5 Jan 2013 14:48:57 +0000 (+0100) Subject: utils.h: get rid of the duplicate BUILD_BUG_ON definition, use the one from libubox X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7539ced189392b73b76798a5cb865b59ab1283f;p=oweals%2Fnetifd.git utils.h: get rid of the duplicate BUILD_BUG_ON definition, use the one from libubox Signed-off-by: Felix Fietkau --- 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) {