From 1d20a7ccf3a9edba0b27dcc0cf114edcf2b25a88 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 22 May 2024 19:40:51 +0300 Subject: [PATCH] server: remove ad-hoc EXPORT macro definitions, replace with proper exportdef.h --- dlls/extdll.h | 7 +------ engine/eiface.h | 8 ++------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dlls/extdll.h b/dlls/extdll.h index 9138cdf..fed6c22 100644 --- a/dlls/extdll.h +++ b/dlls/extdll.h @@ -58,12 +58,7 @@ typedef int BOOL; #endif #endif //_WIN32 -#ifdef _WIN32 -#define EXPORT _declspec( dllexport ) -#else -#define EXPORT /* */ -#endif - +#include "exportdef.h" // Misc C-runtime library headers #include "stdio.h" #include "stdlib.h" diff --git a/engine/eiface.h b/engine/eiface.h index 37946ec..4e6d2b4 100644 --- a/engine/eiface.h +++ b/engine/eiface.h @@ -34,11 +34,7 @@ // This is conveniently done for them in extdll.h // -#ifdef _WIN32 -#define DLLEXPORT __stdcall -#else -#define DLLEXPORT /* */ -#endif +#include "exportdef.h" typedef enum { @@ -477,4 +473,4 @@ extern NEW_DLL_FUNCTIONS gNewDLLFunctions; typedef int (*APIFUNCTION)( DLL_FUNCTIONS *pFunctionTable, int interfaceVersion ); typedef int (*APIFUNCTION2)( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion ); -#endif//EIFACE_H \ No newline at end of file +#endif//EIFACE_H