diff options
author | Explorer09 <explorer09@gmail.com> | 2024-04-22 18:32:23 +0800 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-04-22 13:41:26 +0200 |
commit | 30618c586caa6ffc67d263686f85ba65aa4e0e54 (patch) | |
tree | 00343a29d86d219250b00c72b71398ced8fea5ee | |
parent | 4c0e96592d5f5f884aab9b29a3300ae5e1b6009b (diff) |
Update '__STDC_VERSION__' check with C23
`__STDC_VERSION__` will be defined as 202311L for C23.
-rw-r--r-- | Compat.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -74,9 +74,8 @@ ssize_t Compat_readlink(openat_arg_t dirfd, # endif #endif -/* C23 will guarantee static_assert is a keyword or a macro */ -/* FIXME: replace 202300L with proper value once C23 is published */ -#if (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 202300L +/* C23 guarantees static_assert is a keyword or a macro */ +#if (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 202311L # if !defined(static_assert) # define static_assert(expr, msg) _Static_assert(expr, msg) # endif |