From 5e7b5de8970d0989b90d258df8431a3ae5c9b8bd Mon Sep 17 00:00:00 2001 From: HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> Date: Thu, 28 Jul 2022 15:28:35 +0300 Subject: [PATCH] fix compile time assert --- game/server/baseentity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/server/baseentity.h b/game/server/baseentity.h index eeb692096e..e081592218 100644 --- a/game/server/baseentity.h +++ b/game/server/baseentity.h @@ -1108,7 +1108,7 @@ public: ENTITYFUNCPTR TouchSet( ENTITYFUNCPTR func, char *name ) { -#ifdef PLATFORM_64BITS +#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64) COMPILE_TIME_ASSERT( sizeof(func) == 8 ); #else COMPILE_TIME_ASSERT( sizeof(func) == 4 ); @@ -1119,7 +1119,7 @@ public: } USEPTR UseSet( USEPTR func, char *name ) { -#ifdef PLATFORM_64BITS +#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64) COMPILE_TIME_ASSERT( sizeof(func) == 8 ); #else COMPILE_TIME_ASSERT( sizeof(func) == 4 ); @@ -1130,7 +1130,7 @@ public: } ENTITYFUNCPTR BlockedSet( ENTITYFUNCPTR func, char *name ) { -#ifdef PLATFORM_64BITS +#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64) COMPILE_TIME_ASSERT( sizeof(func) == 8 ); #else COMPILE_TIME_ASSERT( sizeof(func) == 4 );