From fa45c7dad98e24ef38eeb3f39875b6074ea38845 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 5 Dec 2017 22:13:19 +0800 Subject: fix some pdcurses compile errors for windows --- core/src/xmake/xmake.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/src/xmake') diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua index 3cd34145c..54b933102 100644 --- a/core/src/xmake/xmake.lua +++ b/core/src/xmake/xmake.lua @@ -26,6 +26,11 @@ target("xmake") add_files("**.c") -- add readline - add_options("curses", "readline") + add_options("readline") + if is_plat("windows") then + add_defines("XM_CONFIG_API_HAVE_CURSES") + else + add_options("curses") + end -- cgit v1.3.1