From 4c318d32b20e0229c5da6bcafcb97a9400f97226 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Tue, 28 May 2024 22:29:35 +0300 Subject: [PATCH] fix lib detours compilation on MinGW (missing header include) --- premake5.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/premake5.lua b/premake5.lua index 86cbbcea..755b9556 100644 --- a/premake5.lua +++ b/premake5.lua @@ -442,6 +442,12 @@ filter { "system:windows", "action:gmake*", } -- even when they're force-loaded in any process they immediately unload "-static", } +-- MinGw on Windows cannot compile 'creatwth.cpp' from Detours lib (error: 'DWordMult' was not declared in this scope) +-- because intsafe.h isn't included by default +filter { "system:windows", "action:gmake*", "files:**/detours/creatwth.cpp" } + buildoptions { + "-include intsafe.h", + }