summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:30 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:30 +0000
commitfd289497a5e8f83c6d83f1eb7e30fdc52621bf15 (patch)
treef2bcc8e328e3716208b0e43ff964394e13f5d4c5 /lib
parent2d52a612d9803d4b96dfdd776bf166fd1476be0d (diff)
downloadllvm-fd289497a5e8f83c6d83f1eb7e30fdc52621bf15.tar.gz
llvm-fd289497a5e8f83c6d83f1eb7e30fdc52621bf15.tar.bz2
llvm-fd289497a5e8f83c6d83f1eb7e30fdc52621bf15.tar.xz
Windows/Windows.h: Redefine _WIN32_WINNT here. mingw-w64 tends to define it as 0x0502 in its headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/Windows.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Windows/Windows.h b/lib/Support/Windows/Windows.h
index dfa4be3a15..4a1553b599 100644
--- a/lib/Support/Windows/Windows.h
+++ b/lib/Support/Windows/Windows.h
@@ -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.