[compiler-rt] r341983 - [libFuzzer] [Windows] Include windows.h and psapi.h with lowercase

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 12:11:55 PDT 2018


Author: mstorsjo
Date: Tue Sep 11 12:11:54 2018
New Revision: 341983

URL: http://llvm.org/viewvc/llvm-project?rev=341983&view=rev
Log:
[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

Modified:
    compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp
    compiler-rt/trunk/lib/fuzzer/FuzzerUtilWindows.cpp

Modified: compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp?rev=341983&r1=341982&r2=341983&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsDlsymWin.cpp Tue Sep 11 12:11:54 2018
@@ -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 {
 

Modified: compiler-rt/trunk/lib/fuzzer/FuzzerUtilWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerUtilWindows.cpp?rev=341983&r1=341982&r2=341983&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerUtilWindows.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerUtilWindows.cpp Tue Sep 11 12:11:54 2018
@@ -24,7 +24,7 @@
 #include <windows.h>
 
 // This must be included after windows.h.
-#include <Psapi.h>
+#include <psapi.h>
 
 namespace fuzzer {
 




More information about the llvm-commits mailing list