diff options
| author | ruki <[email protected]> | 2017-12-05 22:13:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-08 14:10:23 +0800 |
| commit | fa45c7dad98e24ef38eeb3f39875b6074ea38845 (patch) | |
| tree | 8170ffe3d868c10160daf8df21f82b66ff7b771d /core/xmake.lua | |
| parent | 2203e61ad7e7918fd04fb7d43e7e6f486debef93 (diff) | |
fix some pdcurses compile errors for windows
Diffstat (limited to 'core/xmake.lua')
| -rw-r--r-- | core/xmake.lua | 16 |
1 files changed, 3 insertions, 13 deletions
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 |
