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/src/xmake | |
| parent | 2203e61ad7e7918fd04fb7d43e7e6f486debef93 (diff) | |
fix some pdcurses compile errors for windows
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
