diff --git a/Plugins/Windows/mingw_sys_utils.cpp b/Plugins/Windows/mingw_sys_utils.cpp index c06ef292f..e8b6edcb2 100644 --- a/Plugins/Windows/mingw_sys_utils.cpp +++ b/Plugins/Windows/mingw_sys_utils.cpp @@ -111,8 +111,9 @@ namespace sys_utils { #ifndef SECURITY_WIN32 #define SECURITY_WIN32 #endif -#include #include + +#include #include #include #include diff --git a/xmake.lua b/xmake.lua index 83e4dc2b4..7b3ea06fa 100644 --- a/xmake.lua +++ b/xmake.lua @@ -81,9 +81,12 @@ target("liblolly") do if is_plat("mingw", "windows") then add_packages("nowide_standalone") + end + + if is_plat("mingw") then add_includedirs("Plugins/Windows") add_files("Plugins/Windows/**.cpp") - end + end add_configfiles( "System/config_l1.h.xmake", {