Skip to content

Commit

Permalink
Fix Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Nov 19, 2024
1 parent cba9a66 commit d307d78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .ecode/project_build.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
},
Expand Down Expand Up @@ -496,4 +496,4 @@
}
]
}
}
}
9 changes: 7 additions & 2 deletions src/eepp/system/platform/win/conditionimpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -38,7 +43,7 @@ class ConditionImpl {
int mConditionnedVar;

HANDLE mCond;
MutexImpl mMutex;
Mutex mMutex;
};

}}} // namespace EE::System::Platform
Expand Down

0 comments on commit d307d78

Please sign in to comment.