From 6e179346c9fe1b6311eecd4ce54d166d5cffdaba Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 19 Dec 2022 18:36:31 +0300 Subject: [PATCH] common: redefine poolhandle_t back to pointer for 32-bit systems --- common/xash3d_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/xash3d_types.h b/common/xash3d_types.h index 9b343e8c..7c1f3a84 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -23,7 +23,12 @@ typedef byte rgba_t[4]; // unsigned byte colorpack typedef byte rgb_t[3]; // unsigned byte colorpack typedef vec_t matrix3x4[3][4]; typedef vec_t matrix4x4[4][4]; + +#if XASH_64BIT typedef uint32_t poolhandle_t; +#else +typedef void* poolhandle_t; +#endif #undef true #undef false