Removed duplicate definition of 'BUILD_BUG_ON'.
This commit is contained in:
parent
bbf493ebae
commit
54dd79ac69
|
@ -35,8 +35,6 @@
|
|||
#define UNIT_TESTED
|
||||
#endif
|
||||
|
||||
//#define SOFT_I2C // enable to test software i2c
|
||||
|
||||
#ifndef __CC_ARM
|
||||
#define REQUIRE_CC_ARM_PRINTF_SUPPORT
|
||||
#define REQUIRE_PRINTF_LONG_SUPPORT
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#if !defined(UNUSED)
|
||||
#define UNUSED(x) (void)(x)
|
||||
#endif
|
||||
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
||||
|
||||
#define STATIC_ASSERT(condition, name) \
|
||||
typedef char assert_failed_ ## name [(condition) ? 1 : -1 ] __attribute__((unused))
|
||||
|
||||
|
|
Loading…
Reference in New Issue