|
Message-Id: <1c0cb3cdbbd685cf6a02188099ece6573a8704c7.1685522953.git.Jens.Gustedt@inria.fr> Date: Wed, 31 May 2023 11:22:58 +0200 From: Jens Gustedt <Jens.Gustedt@...ia.fr> To: musl@...ts.openwall.com Subject: [C23 divers headers 11/17] C23: remove the static_assert macro This is now a keyword. --- include/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/assert.h b/include/assert.h index d14ec94e..71007a10 100644 --- a/include/assert.h +++ b/include/assert.h @@ -8,8 +8,8 @@ #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) #endif -#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus) -#define static_assert _Static_assert +#if __STDC_VERSION__ >= 201112L && __STDC_VERSION__ < 202311L && !defined(__cplusplus) +# define static_assert _Static_assert #endif #ifdef __cplusplus -- 2.34.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.