From 5b7e52eda49bf8efcb8dda6e32b9a5052b27ccba Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 5 Sep 2019 15:39:11 +0000 Subject: [PATCH] Fix plugins on win32. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5536 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- plugins/mpq/fs_mpq.c | 2 +- plugins/plugin.def | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/mpq/fs_mpq.c b/plugins/mpq/fs_mpq.c index a1af7c54e..8be348b23 100644 --- a/plugins/mpq/fs_mpq.c +++ b/plugins/mpq/fs_mpq.c @@ -14,7 +14,7 @@ static size_t activempqcount; //number of active archives. we can't unload the dll while we still have files open. #ifdef MULTITHREAD static plugthreadfuncs_t *threading; -#define Sys_CreateMutex if(threading)threading->CreateMutex +#define Sys_CreateMutex() (threading?threading->CreateMutex():NULL) #define Sys_LockMutex if(threading)threading->LockMutex #define Sys_UnlockMutex if(threading)threading->UnlockMutex #define Sys_DestroyMutex if(threading)threading->DestroyMutex diff --git a/plugins/plugin.def b/plugins/plugin.def index 2ee748e73..1d0f3dee0 100644 --- a/plugins/plugin.def +++ b/plugins/plugin.def @@ -1,3 +1,2 @@ EXPORTS - vmMain - dllEntry + FTEPlug_Init