summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-10 22:54:54 +0800
committerruki <[email protected]>2018-08-10 11:29:26 +0800
commita114fc03b467a5de249496ddc0b32e138d934f44 (patch)
treea8937c7c48be73d4b7ab7d6651062df820c231b0 /core
parent2a7d3704912245a2433d1071679f4253d96069c0 (diff)
remove some macro defines in cl.lua
Diffstat (limited to 'core')
-rw-r--r--core/src/luajit/xmake.lua1
-rw-r--r--core/xmake.lua5
2 files changed, 6 insertions, 0 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua
index ad6ba5261..964c50538 100644
--- a/core/src/luajit/xmake.lua
+++ b/core/src/luajit/xmake.lua
@@ -45,4 +45,5 @@ target("luajit")
add_defines("LUAJIT_DISABLE_JIT")
end
+
diff --git a/core/xmake.lua b/core/xmake.lua
index b9f032680..cd2999cc0 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -55,6 +55,11 @@ option("curses")
add_defines("XM_CONFIG_API_HAVE_CURSES")
option_end()
+-- suppress warnings
+if is_plat("windows") then
+ add_defines("_CRT_SECURE_NO_WARNINGS")
+end
+
-- add projects
includes("src/lcurses", "src/sv","src/luajit", "src/tbox", "src/xmake", "src/demo")
if is_plat("windows") then