[llvm] r342450 - [benchmark] Lowercase windows specific includes

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 18 01:44:57 PDT 2018


Author: mstorsjo
Date: Tue Sep 18 01:44:57 2018
New Revision: 342450

URL: http://llvm.org/viewvc/llvm-project?rev=342450&view=rev
Log:
[benchmark] Lowercase windows specific includes

The windows SDK headers don't have self-consistent casing anyway,
so we consistently use lowercase for these in other places, in order
to fix crosscompilation with mingw headers.

This applies an upstream commit:
https://github.com/google/benchmark/commit/52613079824ac58d06c070aa9fbbb186a5859e2c

Differential Revision: https://reviews.llvm.org/D52181

Modified:
    llvm/trunk/utils/benchmark/src/colorprint.cc
    llvm/trunk/utils/benchmark/src/sleep.cc
    llvm/trunk/utils/benchmark/src/sysinfo.cc
    llvm/trunk/utils/benchmark/src/timers.cc

Modified: llvm/trunk/utils/benchmark/src/colorprint.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/benchmark/src/colorprint.cc?rev=342450&r1=342449&r2=342450&view=diff
==============================================================================
--- llvm/trunk/utils/benchmark/src/colorprint.cc (original)
+++ llvm/trunk/utils/benchmark/src/colorprint.cc Tue Sep 18 01:44:57 2018
@@ -25,7 +25,7 @@
 #include "internal_macros.h"
 
 #ifdef BENCHMARK_OS_WINDOWS
-#include <Windows.h>
+#include <windows.h>
 #include <io.h>
 #else
 #include <unistd.h>

Modified: llvm/trunk/utils/benchmark/src/sleep.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/benchmark/src/sleep.cc?rev=342450&r1=342449&r2=342450&view=diff
==============================================================================
--- llvm/trunk/utils/benchmark/src/sleep.cc (original)
+++ llvm/trunk/utils/benchmark/src/sleep.cc Tue Sep 18 01:44:57 2018
@@ -21,7 +21,7 @@
 #include "internal_macros.h"
 
 #ifdef BENCHMARK_OS_WINDOWS
-#include <Windows.h>
+#include <windows.h>
 #endif
 
 namespace benchmark {

Modified: llvm/trunk/utils/benchmark/src/sysinfo.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/benchmark/src/sysinfo.cc?rev=342450&r1=342449&r2=342450&view=diff
==============================================================================
--- llvm/trunk/utils/benchmark/src/sysinfo.cc (original)
+++ llvm/trunk/utils/benchmark/src/sysinfo.cc Tue Sep 18 01:44:57 2018
@@ -15,10 +15,10 @@
 #include "internal_macros.h"
 
 #ifdef BENCHMARK_OS_WINDOWS
-#include <Shlwapi.h>
+#include <shlwapi.h>
 #undef StrCat  // Don't let StrCat in string_util.h be renamed to lstrcatA
-#include <VersionHelpers.h>
-#include <Windows.h>
+#include <versionhelpers.h>
+#include <windows.h>
 #else
 #include <fcntl.h>
 #ifndef BENCHMARK_OS_FUCHSIA

Modified: llvm/trunk/utils/benchmark/src/timers.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/benchmark/src/timers.cc?rev=342450&r1=342449&r2=342450&view=diff
==============================================================================
--- llvm/trunk/utils/benchmark/src/timers.cc (original)
+++ llvm/trunk/utils/benchmark/src/timers.cc Tue Sep 18 01:44:57 2018
@@ -16,10 +16,10 @@
 #include "internal_macros.h"
 
 #ifdef BENCHMARK_OS_WINDOWS
-#include <Shlwapi.h>
+#include <shlwapi.h>
 #undef StrCat  // Don't let StrCat in string_util.h be renamed to lstrcatA
-#include <VersionHelpers.h>
-#include <Windows.h>
+#include <versionhelpers.h>
+#include <windows.h>
 #else
 #include <fcntl.h>
 #ifndef BENCHMARK_OS_FUCHSIA




More information about the llvm-commits mailing list