summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/RandomNumberGenerator.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2020-02-28 09:59:24 +0100
committerHans Wennborg <hans@chromium.org>2020-02-28 11:26:34 +0100
commitdaae05af2a5d1170de6940569128dcf071db32ef (patch)
tree43ed035ddef908151562e2a5902e759a97da17a4 /llvm/lib/Support/RandomNumberGenerator.cpp
parente705da06e22b12ee5d75076a2a1ae7b479a566e1 (diff)
downloadbcm5719-llvm-daae05af2a5d1170de6940569128dcf071db32ef.tar.gz
bcm5719-llvm-daae05af2a5d1170de6940569128dcf071db32ef.zip
llvm-ar: Fix MinGW compilation
llvm-ar is using CompareStringOrdinal which is available only starting with Windows Vista (WINVER 0x600). Fix this by hoising WindowsSupport.h, which sets _WIN32_WINNT to 0x0601, up to llvm/include/llvm/Support and use it in llvm-ar. Patch by Cristian Adam! Differential revision: https://reviews.llvm.org/D74599 (cherry picked from commit 01f9abbb50b11dd26b9ccb7cb565cc955d2b9c74) This is for https://bugs.llvm.org/show_bug.cgi?id=44907
Diffstat (limited to 'llvm/lib/Support/RandomNumberGenerator.cpp')
-rw-r--r--llvm/lib/Support/RandomNumberGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/RandomNumberGenerator.cpp b/llvm/lib/Support/RandomNumberGenerator.cpp
index 09fad197998..f9c41ee5eaa 100644
--- a/llvm/lib/Support/RandomNumberGenerator.cpp
+++ b/llvm/lib/Support/RandomNumberGenerator.cpp
@@ -17,7 +17,7 @@
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#ifdef _WIN32
-#include "Windows/WindowsSupport.h"
+#include "llvm/Support/Windows/WindowsSupport.h"
#else
#include "Unix/Unix.h"
#endif
OpenPOWER on IntegriCloud