浏览代码

Try to fix Windows build

Ivan Savenko 5 月之前
父节点
当前提交
89692a57f0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Global.h

+ 3 - 0
Global.h

@@ -85,6 +85,9 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
 #  ifndef NOMINMAX
 #    define NOMINMAX				 // Exclude min/max macros from <Windows.h>. Use std::[min/max] from <algorithm> instead.
 #  endif
+#  ifndef NOGDI
+#    define NOGDI
+#  endif
 #  ifndef _NO_W32_PSEUDO_MODIFIERS
 #    define _NO_W32_PSEUDO_MODIFIERS // Exclude more macros for compiling with MinGW on Linux.
 #  endif