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/xmake.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'core/xmake.lua') diff --git a/core/xmake.lua b/core/xmake.lua index 8a71c57f1..edf65dbe7 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -30,15 +30,9 @@ add_cxflags("-fomit-frame-pointer") -- for the windows platform (msvc) if is_plat("windows") then - - -- add some defines only for windows - add_defines("NOCRYPT", "NOGDI") - - -- link libcmt.lib add_cxflags("-MT") - - -- no msvcrt.lib add_ldflags("-nodefaultlib:\"msvcrt.lib\"") + add_links("kernel32", "user32", "gdi32") end -- for mode coverage @@ -56,13 +50,9 @@ option_end() -- the curses option option("curses") + add_links("curses") + add_cincludes("curses.h") add_defines("XM_CONFIG_API_HAVE_CURSES") - if is_plat("windows") then - add_defines("PDCURSES") - else - add_links("curses") - add_cincludes("curses.h") - end option_end() -- add projects -- cgit v1.3.1