1
0
mirror of https://github.com/google/benchmark.git synced 2025-03-28 21:10:58 +08:00

Fix building on MinGW: default WINVER is too old ()

MinGW defaults `WINVER` to something very old,
while benchmark requires features gated by `WINVER = 0x0600`,
so manually set update to that.
This commit is contained in:
Ming Zero 2023-10-16 23:19:17 +08:00 committed by GitHub
parent 682153afda
commit ea3c3f983b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,10 @@
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#if !defined(WINVER) || WINVER < 0x0600
#undef WINVER
#define WINVER 0x0600
#endif // WINVER handling
#include <shlwapi.h>
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
#include <versionhelpers.h>