From 9d8ba03f5e7cbaac904cae55c1b2b68cd155fb28 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 27 Dec 2023 03:10:41 +0300 Subject: [PATCH] common: xash3d_types: fix static_assert macro --- common/xash3d_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xash3d_types.h b/common/xash3d_types.h index 1c45b8ee..23170411 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -121,7 +121,7 @@ typedef uint64_t longtime_t; #define likely(x) (x) #endif -#if defined( static_assert ) // C11 static_assert +#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L // C11 static_assert #define STATIC_ASSERT static_assert #else #define STATIC_ASSERT( x, y ) extern int _static_assert_##__LINE__[( x ) ? 1 : -1]