diff options
| author | hathach <[email protected]> | 2018-08-23 21:05:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-23 21:05:52 +0700 |
| commit | 460285f852c63fa835df8eea32a9f10814f013a5 (patch) | |
| tree | f33ed1d128f93ff55062a1ae6f96088bd59915f8 /src/common | |
| parent | 23c7c2102b8b5b34fb11481803b61c961e82a583 (diff) | |
fix compiler static assert complain
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_compiler.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <assert.h>
#define TU_VERIFY_STATIC static_assert
#else
#define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }
|
