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 (#1681)
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:
parent
682153afda
commit
ea3c3f983b
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user