From 81fe047f9adac0f426476477ea8911675b8f60b3 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sun, 21 Jul 2019 18:47:42 +0500 Subject: [PATCH] Do not create linkents in client library to prevent possible name collision. --- dlls/util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/util.h b/dlls/util.h index 602380ba..2bb8a5d4 100644 --- a/dlls/util.h +++ b/dlls/util.h @@ -108,7 +108,11 @@ typedef int BOOL; // The _declspec forces them to be exported by name so we can do a lookup with GetProcAddress() // The function is used to intialize / allocate the object for the entity +#if defined(CLIENT_DLL) +#define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) +#else // CLIENT_DLL #define LINK_ENTITY_TO_CLASS(mapClassName,DLLClassName) extern "C" EXPORT void mapClassName( entvars_t *pev ); void mapClassName( entvars_t *pev ) { GetClassPtr( (DLLClassName *)pev ); } +#endif // CLIENT_DLL // // Conversion among the three types of "entity", including identity-conversions.