C11, section 7.2: The macro static_assert expands to _Static_assert. This macro was missing on Windows
This commit is contained in:
parent
269042503e
commit
0d6801b130
1 changed files with 5 additions and 0 deletions
|
@ -54,4 +54,9 @@ extern void __cdecl _assert(const char *, const char *, unsigned);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (__STDC_VERSION__ >= 201112L) && !defined(static_assert)
|
||||||
|
/* C11, section 7.2: The macro static_assert expands to _Static_assert. */
|
||||||
|
#define static_assert(exp, str) _Static_assert(exp, str)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue