summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-09-11 19:11:54 +0000
committerMartin Storsjo <martin@martin.st>2018-09-11 19:11:54 +0000
commite199a2d434b10b5bffacf0043f2b1d835442c4e7 (patch)
tree754cfef537f643a503319ecba59989979c1b7a4f
parent941615e4c8c6eb0300665360f53f8ac768179a13 (diff)
downloadbcm5719-llvm-e199a2d434b10b5bffacf0043f2b1d835442c4e7.tar.gz
bcm5719-llvm-e199a2d434b10b5bffacf0043f2b1d835442c4e7.zip
[libFuzzer] [Windows] Include windows.h and psapi.h with lowercase
This fixes building on a case sensitive filesystem with mingw-w64 headers, where all headers are lowercase, and matches how these headers are included elsewhere in compiler-rt. Also include these headers with angle brackets, as they are system headers. Differential Revision: https://reviews.llvm.org/D51913 llvm-svn: 341983
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp4
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp
index 321b3ec5d41..e09da3fdeee 100644
--- a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp
@@ -13,10 +13,10 @@
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
-#include "Windows.h"
+#include <windows.h>
// This must be included after Windows.h.
-#include "Psapi.h"
+#include <psapi.h>
namespace fuzzer {
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
index 257723b6050..393b4768be7 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -24,7 +24,7 @@
#include <windows.h>
// This must be included after windows.h.
-#include <Psapi.h>
+#include <psapi.h>
namespace fuzzer {
OpenPOWER on IntegriCloud