From e5670afc4c6b76320ef9ff7cad0800b98b1be8e2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 1 Apr 2026 06:16:30 +0500 Subject: [PATCH] common: xash3d_types: undefine ARRAYSIZE before defining our ARRAYSIZE (actually we should stop using ARRAYSIZE instead) --- common/xash3d_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/xash3d_types.h b/common/xash3d_types.h index e690adb6..405b14c3 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -122,6 +122,10 @@ typedef int qboolean; #define EXPORT __declspec( dllexport ) #endif +#ifdef ARRAYSIZE +#undef ARRAYSIZE +#endif // ARRAYSIZE + #define ARRAYSIZE( p ) ( sizeof(( p ))/ sizeof(( p )[0] )) #if defined( __SANITIZE_ADDRESS__ )