Skip to content

Commit

Permalink
[benchmark] Lowercase windows specific includes (#679)
Browse files Browse the repository at this point in the history
The windows SDK headers don't have self-consistent casing anyway,
and many projects consistently use lowercase for them, in order
to fix crosscompilation with mingw headers.
  • Loading branch information
mstorsjo authored and dominichamon committed Sep 18, 2018
1 parent a5e9c06 commit 5261307
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/colorprint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/sleep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "internal_macros.h"

#ifdef BENCHMARK_OS_WINDOWS
#include <Windows.h>
#include <windows.h>
#endif

namespace benchmark {
Expand Down
6 changes: 3 additions & 3 deletions src/sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/timers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5261307

Please sign in to comment.