Skip to content

Commit

Permalink
Another attempt at fixing the i686-mingw32-RA-on-linux buildbot. I am…
Browse files Browse the repository at this point in the history
… getting

confused with what version of mingw is actually installed on the buildbot, and
for now I will just assume this is an unknown version which does not ship with
VersionHelpers.h.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256902 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Yunzhong Gao authored and Yunzhong Gao committed Jan 6, 2016
1 parent 6dfd12c commit bcbe1c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Support/Windows/WindowsSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@
#include <string>
#include <vector>

#if !defined(__CYGWIN__) && \
!(defined(__MINGW32__) && defined(__MINGW64_VERSION_MAJOR) && \
__MINGW64_VERSION_MAJOR < 3)
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#include <VersionHelpers.h>
#else
// Cygwin does not have the IsWindows8OrGreater() API.
// Older version of mingw-w64 does not have the API either.
// Some version of mingw does not have the API either.
inline bool IsWindows8OrGreater() {
OSVERSIONINFO osvi = {};
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
Expand Down

0 comments on commit bcbe1c3

Please sign in to comment.