aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-25 22:40:54 +0200
committerMartin Ridgers <[email protected]>2021-10-25 22:50:44 +0200
commit06a5e7af2d529c117b9046df2563c965cb4b9fbf (patch)
tree6f23f2ab38bbb209fdeeb0f9548c224c692816c2 /xmake.lua
parentDefine the cut-down Windows defines via zencore.h too (diff)
downloadzen-06a5e7af2d529c117b9046df2563c965cb4b9fbf.tar.xz
zen-06a5e7af2d529c117b9046df2563c965cb4b9fbf.zip
Prevent GetObject from being defined as a macro by Windows.h
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 84aaceacc..241ec15a5 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -45,6 +45,7 @@ if is_os("windows") then
"UNICODE",
"_CONSOLE",
"NOMINMAX", -- stop Windows SDK defining 'min' and 'max'
+ "NOGDI", -- otherwise Windows.h defines 'GetObject'
"WIN32_LEAN_AND_MEAN", -- cut down Windows.h
"_WIN32_WINNT=0x0A00"
)