diff options
| author | Martin Ridgers <[email protected]> | 2021-10-15 15:56:34 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-15 16:00:47 +0200 |
| commit | 03407af671ab17eaf173ca456f12d5c563735b53 (patch) | |
| tree | 22b17b5fcfd3348b60018281b7eadffd4e1a41ee /xmake.lua | |
| parent | Merged main (diff) | |
| download | zen-03407af671ab17eaf173ca456f12d5c563735b53.tar.xz zen-03407af671ab17eaf173ca456f12d5c563735b53.zip | |
Moved Windows-only defines to the is("windows") xmake block
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -42,7 +42,13 @@ else end if is_os("windows") then - add_defines("_CRT_SECURE_NO_WARNINGS", "_UNICODE", "UNICODE", "_WIN32_WINNT=0x0A00") + add_defines( + "_CRT_SECURE_NO_WARNINGS", + "_UNICODE", + "UNICODE", + "_CONSOLE", + "_WIN32_WINNT=0x0A00" + ) -- add_ldflags("/MAP") end @@ -69,8 +75,6 @@ option("httpsys") add_defines("ZEN_WITH_HTTPSYS") option_end() -add_defines("UNICODE", "_CONSOLE") - set_warnings("allextra", "error") set_languages("cxx20") |