[llvm-commits] [llvm] r125171 - /llvm/trunk/lib/Support/Windows/Windows.h
NAKAMURA Takumi
geek4civic at gmail.com
Tue Feb 8 20:18:30 PST 2011
Author: chapuni
Date: Tue Feb 8 22:18:30 2011
New Revision: 125171
URL: http://llvm.org/viewvc/llvm-project?rev=125171&view=rev
Log:
Windows/Windows.h: Redefine _WIN32_WINNT here. mingw-w64 tends to define it as 0x0502 in its headers.
Modified:
llvm/trunk/lib/Support/Windows/Windows.h
Modified: llvm/trunk/lib/Support/Windows/Windows.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Windows.h?rev=125171&r1=125170&r2=125171&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Windows.h (original)
+++ llvm/trunk/lib/Support/Windows/Windows.h Tue Feb 8 22:18:30 2011
@@ -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.
More information about the llvm-commits
mailing list