From 1a4a27324b1ed5adc456a1df72f34b63b9b87c93 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 2 Sep 2018 20:30:07 +0700 Subject: clean up --- src/common/tusb_compiler.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 7048732cf..933d76043 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -58,9 +58,8 @@ //--------------------------------------------------------------------+ // Compile-time Assert (use TU_VERIFY_STATIC to avoid name conflict) //--------------------------------------------------------------------+ -#if defined(__ICCARM__) || (__STDC_VERSION__ >= 201112L ) - #include - #define TU_VERIFY_STATIC static_assert +#if __STDC_VERSION__ >= 201112L + #define TU_VERIFY_STATIC _Static_assert #else #define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) } #endif -- cgit v1.3.1