summaryrefslogtreecommitdiff
path: root/core/xmake.lua
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/xmake.lua
parent2a7d3704912245a2433d1071679f4253d96069c0 (diff)
remove some macro defines in cl.lua
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua5
1 files changed, 5 insertions, 0 deletions
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