llvm.org GIT mirror llvm / f776cd5
Hopefully fix a mingw32 buildbot (i686-mingw32-RA-on-linux) which does not have the VersionHelpers.h header. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256896 91177308-0d34-0410-b5e6-96231b3b80d8 Yunzhong Gao 3 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3030 #define _WIN32_IE 0x0800 // MinGW at it again. FIXME: verify if still needed.
3131 #define WIN32_LEAN_AND_MEAN
3232 #define NOGDI
33 #ifndef NOMINMAX
3334 #define NOMINMAX
35 #endif
3436
3537 #include "llvm/ADT/SmallVector.h"
3638 #include "llvm/ADT/StringExtras.h"
4547 #include
4648 #include
4749
48 #ifndef __CYGWIN__
50 #if !defined(__CYGWIN__) && \
51 !(defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
4952 #include
5053 #else
5154 // Cygwin does not have the IsWindows8OrGreater() API.
55 // Mingw32 does not have the API either (but mingw-w64 does).
5256 inline bool IsWindows8OrGreater() {
5357 OSVERSIONINFO osvi = {};
5458 osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);