Windows/Windows.h: Redefine _WIN32_WINNT here. mingw-w64 tends to define it as 0x0502...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:18:30 +0000 (04:18 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:18:30 +0000 (04:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125171 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Windows.h

index dfa4be3a154ee4e758bc4ed60cf3964093a53572..4a1553b599d7530d726fee9e7a8f88d3e56f096c 100644 (file)
@@ -16,6 +16,9 @@
 //===          is guaranteed to work on *all* Win32 variants.
 //===----------------------------------------------------------------------===//
 
+// mingw-w64 tends to define it as 0x0502 in its headers.
+#undef _WIN32_WINNT
+
 // Require at least Windows 2000 API.
 #define _WIN32_WINNT 0x0500
 #define _WIN32_IE    0x0500 // MinGW at it again.