diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index 758c642fe24..1482d87f5aa 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -61,6 +61,9 @@ (__STDC_VERSION__) >= 201100 #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) #define BUILD_ASSERT_MSG(EXPR, MSG) __DEPRECATED_MACRO BUILD_ASSERT(EXPR, MSG) +#else +#define BUILD_ASSERT(EXPR, MSG...) +#define BUILD_ASSERT_MSG(EXPR, MSG) #endif #include