From d307d78adf2852ef5cc1841d2edfeeb58c4cd629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 19 Nov 2024 00:50:38 -0300 Subject: [PATCH] Fix Windows build. --- .ecode/project_build.json | 4 ++-- src/eepp/system/platform/win/conditionimpl.hpp | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.ecode/project_build.json b/.ecode/project_build.json index de37913ca..5314f13d0 100644 --- a/.ecode/project_build.json +++ b/.ecode/project_build.json @@ -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 @@ } ] } -} \ No newline at end of file +} diff --git a/src/eepp/system/platform/win/conditionimpl.hpp b/src/eepp/system/platform/win/conditionimpl.hpp index 58d00243b..53e8b602b 100644 --- a/src/eepp/system/platform/win/conditionimpl.hpp +++ b/src/eepp/system/platform/win/conditionimpl.hpp @@ -5,7 +5,12 @@ #if EE_PLATFORM == EE_PLATFORM_WIN -#include +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include + +#include namespace EE { namespace System { namespace Platform { @@ -38,7 +43,7 @@ class ConditionImpl { int mConditionnedVar; HANDLE mCond; - MutexImpl mMutex; + Mutex mMutex; }; }}} // namespace EE::System::Platform