 
            C23 deprecates _Static_assert().
 
            From: Brendan Shanks bshanks@codeweavers.com
C23 deprecates _Static_assert(). --- include/winnt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/winnt.h b/include/winnt.h index 8889f882df8..d360f5d0178 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -401,7 +401,9 @@ extern "C" {
/* Compile time assertion */
-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L) +#define C_ASSERT(e) static_assert(e, #e) +#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) #define C_ASSERT(e) _Static_assert(e, #e) #else #define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1])

