From 460285f852c63fa835df8eea32a9f10814f013a5 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 23 Aug 2018 21:05:52 +0700 Subject: [PATCH] fix compiler static assert complain --- src/common/tusb_compiler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 09cc59633..7048732cf 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -59,6 +59,7 @@ // Compile-time Assert (use TU_VERIFY_STATIC to avoid name conflict) //--------------------------------------------------------------------+ #if defined(__ICCARM__) || (__STDC_VERSION__ >= 201112L ) + #include #define TU_VERIFY_STATIC static_assert #else #define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }