Another attempt at fixing the i686-mingw32-RA-on-linux buildbot.

llvm-svn: 256901
This commit is contained in:
Yunzhong Gao 2016-01-06 02:32:31 +00:00
parent 80eb76abf4
commit b15585f0ea
1 changed files with 3 additions and 2 deletions

View File

@ -49,11 +49,12 @@
#include <vector>
#if !defined(__CYGWIN__) && \
!(defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
!(defined(__MINGW32__) && defined(__MINGW64_VERSION_MAJOR) && \
__MINGW64_VERSION_MAJOR < 3)
#include <VersionHelpers.h>
#else
// Cygwin does not have the IsWindows8OrGreater() API.
// Mingw32 does not have the API either (but mingw-w64 does).
// Older version of mingw-w64 does not have the API either.
inline bool IsWindows8OrGreater() {
OSVERSIONINFO osvi = {};
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);