utils.h: get rid of the duplicate BUILD_BUG_ON definition, use the one from libubox
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Jan 2013 14:48:57 +0000 (15:48 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Jan 2013 14:48:57 +0000 (15:48 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
utils.h

diff --git a/utils.h b/utils.h
index 048ad8f6deb72e802f59f23b70683c66fe79e737..174e8254174ab8fbe1d110d03deb593ccfb22104 100644 (file)
--- a/utils.h
+++ b/utils.h
 #include <libubox/avl-cmp.h>
 #include <libubox/blobmsg.h>
 #include <libubox/vlist.h>
-
-#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 <libubox/utils.h>
 
 static inline bool blobmsg_get_bool_default(struct blob_attr *attr, bool val)
 {