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.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/src/lua/xmake.sh') diff --git a/core/src/lua/xmake.sh b/core/src/lua/xmake.sh index 78e05bd21..59eff5dd3 100755 --- a/core/src/lua/xmake.sh +++ b/core/src/lua/xmake.sh @@ -44,8 +44,9 @@ target "lua" # add definitions add_defines "LUA_COMPAT_5_1" "LUA_COMPAT_5_2" "LUA_COMPAT_5_3" "{public}" - if is_plat "mingw"; then - add_defines "LUA_USE_WINDOWS" + if is_plat "mingw"; then true + # it has been defined in luaconf.h + #add_defines "LUA_USE_WINDOWS" elif is_plat "macosx"; then add_defines "LUA_USE_MACOSX" else -- cgit v1.3.1