Fix Windows build.

This commit is contained in:
Martín Lucas Golini
2024-11-19 00:50:38 -03:00
parent cba9a66224
commit d307d78adf
2 changed files with 9 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
"ecode-linux": {
"build": [
{
"args": "--with-debug-symbols --with-text-shaper gmake",
"args": "--with-debug-symbols --disable-static-build --with-text-shaper gmake",
"command": "premake4",
"working_dir": "${project_root}"
},
@@ -496,4 +496,4 @@
}
]
}
}
}

View File

@@ -5,7 +5,12 @@
#if EE_PLATFORM == EE_PLATFORM_WIN
#include <eepp/system/platform/win/muteximpl.hpp>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <eepp/system/mutex.hpp>
namespace EE { namespace System { namespace Platform {
@@ -38,7 +43,7 @@ class ConditionImpl {
int mConditionnedVar;
HANDLE mCond;
MutexImpl mMutex;
Mutex mMutex;
};
}}} // namespace EE::System::Platform