瀏覽代碼

MXE support: avoid conflicts with some macros from headers

ArseniyShestakov 9 年之前
父節點
當前提交
e3f2bb2c99
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Global.h

+ 1 - 0
Global.h

@@ -93,6 +93,7 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
 #ifdef VCMI_WINDOWS
 #  define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers - delete this line if something is missing.
 #  define NOMINMAX					// Exclude min/max macros from <Windows.h>. Use std::[min/max] from <algorithm> instead.
+#  define _NO_W32_PSEUDO_MODIFIERS  // Exclude more macros for compiling with MinGW on Linux.
 #endif
 
 /* ---------------------------------------------------------------------------- */