static_assert is a keyword in C23.
Test: treehugger Change-Id: I4eba529475b6255bef1af558f54c373aad8737d0
This commit is contained in:
parent
374d2f1be0
commit
525761fd7d
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