summaryrefslogtreecommitdiffstats
path: root/Compat.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-22 18:32:23 +0800
committerBenBE <BenBE@geshi.org>2024-04-22 13:41:26 +0200
commit30618c586caa6ffc67d263686f85ba65aa4e0e54 (patch)
tree00343a29d86d219250b00c72b71398ced8fea5ee /Compat.h
parent4c0e96592d5f5f884aab9b29a3300ae5e1b6009b (diff)
Update '__STDC_VERSION__' check with C23
`__STDC_VERSION__` will be defined as 202311L for C23.
Diffstat (limited to 'Compat.h')
-rw-r--r--Compat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Compat.h b/Compat.h
index 2bc12dc6..02b2fcb2 100644
--- a/Compat.h
+++ b/Compat.h
@@ -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

© 2014-2024 Faster IT GmbH | imprint | privacy policy