tuklib: __STDC_VERSION__ in C23 is 202311

This commit is contained in:
Lasse Collin 2024-06-01 14:25:29 +03:00
parent 9e73918a4f
commit caea7844d3
1 changed files with 1 additions and 3 deletions

View File

@ -68,9 +68,7 @@
// __attribute__((nonnull(1)))
// extern void foo(const char *s);
//
// FIXME: Update __STDC_VERSION__ for the final C23 version. 202000 is used
// by GCC 13 and Clang 15 with -std=c2x.
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311
# define tuklib_attr_noreturn [[noreturn]]
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112
# define tuklib_attr_noreturn _Noreturn