Merge "static_assert is a keyword in C23."
This commit is contained in:
commit
0122e010a9
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && __STDC_VERSION__ >= 201112L
|
||||
/* `static_assert` is a keyword in C++11 and C23; C11 had `_Static_assert` instead. */
|
||||
#if !defined(__cplusplus) && (__STDC_VERSION__ >= 201112L && __STDC_VERSION__ < 202311L)
|
||||
# undef static_assert
|
||||
# define static_assert _Static_assert
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue