mirror of
https://github.com/google/benchmark.git
synced 2024-12-28 21:40:15 +08:00
[benchmark] Lowercase windows specific includes (#679)
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.
This commit is contained in:
parent
a5e9c061d9
commit
5261307982
@ -25,7 +25,7 @@
|
|||||||
#include "internal_macros.h"
|
#include "internal_macros.h"
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "internal_macros.h"
|
#include "internal_macros.h"
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace benchmark {
|
namespace benchmark {
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
#include "internal_macros.h"
|
#include "internal_macros.h"
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
|
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
|
||||||
#include <VersionHelpers.h>
|
#include <versionhelpers.h>
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#ifndef BENCHMARK_OS_FUCHSIA
|
#ifndef BENCHMARK_OS_FUCHSIA
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
#include "internal_macros.h"
|
#include "internal_macros.h"
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
|
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
|
||||||
#include <VersionHelpers.h>
|
#include <versionhelpers.h>
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#ifndef BENCHMARK_OS_FUCHSIA
|
#ifndef BENCHMARK_OS_FUCHSIA
|
||||||
|
Loading…
Reference in New Issue
Block a user