diff options
| author | Ha Thach <[email protected]> | 2020-10-11 14:55:06 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-11 14:55:06 +0700 |
| commit | 80c509a0f37d69d026717e6fb8ece34d5ec6086c (patch) | |
| tree | 5c22addd070bab8d37c8f87d431948ef9d0dfbb1 /src/common/tusb_compiler.h | |
| parent | 736a6ff09a768e890b899245ec092d92f6a01589 (diff) | |
| parent | 7fda95f508ee1548da4bc9296aa160b98f2bd8c2 (diff) | |
Merge pull request #520 from salkinium/feature/misc_enhancements
STM32F3 IRQ remap option and some minor improvements
Diffstat (limited to 'src/common/tusb_compiler.h')
| -rw-r--r-- | src/common/tusb_compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 6f6aa3c39..505542078 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -44,8 +44,10 @@ #endif // Compile-time Assert -#if __STDC_VERSION__ >= 201112L +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #define TU_VERIFY_STATIC _Static_assert +#elif defined (__cplusplus) && __cplusplus >= 201103L + #define TU_VERIFY_STATIC static_assert #else #define TU_VERIFY_STATIC(const_expr, _mess) enum { TU_XSTRCAT(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) } #endif |
