static_assert is a keyword in C23.

Test: treehugger
Change-Id: I4eba529475b6255bef1af558f54c373aad8737d0
This commit is contained in:
Elliott Hughes 2023-05-24 08:48:42 -07:00
parent 374d2f1be0
commit 525761fd7d

View file

@ -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