Removed duplicate definition of 'BUILD_BUG_ON'.

This commit is contained in:
mikeller 2018-07-23 20:12:23 +12:00
parent bbf493ebae
commit 54dd79ac69
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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))