-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #985 from Chilledheart/benchmark_bump_to_1_8_4
benchmark: update for 1.8.4
- Loading branch information
Showing
2 changed files
with
9 additions
and
18 deletions.
There are no files selected for viewing
Submodule benchmark
updated
80 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
From f9dae25d4721574d55a75e79c29615f3407717a2 Mon Sep 17 00:00:00 2001 | ||
From: Chilledheart <[email protected]> | ||
Date: Fri, 21 Jul 2023 16:00:26 +0800 | ||
Subject: [PATCH] allow windows xp build | ||
|
||
--- | ||
src/sysinfo.cc | 8 +++++--- | ||
src/timers.cc | 2 +- | ||
2 files changed, 6 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/src/sysinfo.cc b/src/sysinfo.cc | ||
index 4578cb0..3ad29eb 100644 | ||
index 7261e2a..962ad00 100644 | ||
--- a/src/sysinfo.cc | ||
+++ b/src/sysinfo.cc | ||
@@ -15,12 +15,15 @@ | ||
@@ -15,16 +15,15 @@ | ||
#include "internal_macros.h" | ||
|
||
#ifdef BENCHMARK_OS_WINDOWS | ||
-#if !defined(WINVER) || WINVER < 0x0600 | ||
-#undef WINVER | ||
-#define WINVER 0x0600 | ||
-#endif // WINVER handling | ||
+struct IUnknown; | ||
#include <shlwapi.h> | ||
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA | ||
|
@@ -29,7 +23,7 @@ index 4578cb0..3ad29eb 100644 | |
#else | ||
#include <fcntl.h> | ||
#if !defined(BENCHMARK_OS_FUCHSIA) && !defined(BENCHMARK_OS_QURT) | ||
@@ -733,8 +736,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) { | ||
@@ -748,8 +747,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) { | ||
// In NT, read MHz from the registry. If we fail to do so or we're in win9x | ||
// then make a crude estimate. | ||
DWORD data, data_size = sizeof(data); | ||
|
@@ -40,7 +34,7 @@ index 4578cb0..3ad29eb 100644 | |
"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", | ||
"~MHz", nullptr, &data, &data_size))) | ||
diff --git a/src/timers.cc b/src/timers.cc | ||
index b23feea..a871002 100644 | ||
index d0821f3..3390e38 100644 | ||
--- a/src/timers.cc | ||
+++ b/src/timers.cc | ||
@@ -17,9 +17,9 @@ | ||
|
@@ -54,6 +48,3 @@ index b23feea..a871002 100644 | |
#include <windows.h> | ||
#else | ||
#include <fcntl.h> | ||
-- | ||
2.40.1.windows.1 | ||
|