From 1d6f7c99f8c7992e2eb7cd99bb7eb6aa309bb314 Mon Sep 17 00:00:00 2001 From: tqfx Date: Fri, 24 May 2024 22:39:12 +0800 Subject: Fix building xmake using xmake on mingw --- core/src/lua/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/lua/xmake.lua') diff --git a/core/src/lua/xmake.lua b/core/src/lua/xmake.lua index 8803dd2b3..006480397 100644 --- a/core/src/lua/xmake.lua +++ b/core/src/lua/xmake.lua @@ -21,7 +21,7 @@ target("lua") -- add definitions add_defines("LUA_COMPAT_5_1", "LUA_COMPAT_5_2", "LUA_COMPAT_5_3", {public = true}) - if is_plat("windows") then + if is_plat("windows", "mingw") then -- it has been defined in luaconf.h --add_defines("LUA_USE_WINDOWS") elseif is_plat("macosx", "iphoneos") then -- cgit v1.3.1