From aeb4c0d8fbe82fbb63a169f85cb2730a93efaece Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 9 Feb 2011 04:18:30 +0000 Subject: Windows/Windows.h: Redefine _WIN32_WINNT here. mingw-w64 tends to define it as 0x0502 in its headers. llvm-svn: 125171 --- llvm/lib/Support/Windows/Windows.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Windows/Windows.h b/llvm/lib/Support/Windows/Windows.h index dfa4be3a154..4a1553b599d 100644 --- a/llvm/lib/Support/Windows/Windows.h +++ b/llvm/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. -- cgit v1.2.3