mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40:14 +08:00
Fixes #1581.
This commit is contained in:
parent
f7547e29cc
commit
b177433f3e
@ -44,7 +44,9 @@
|
|||||||
#define BENCHMARK_OS_WINDOWS 1
|
#define BENCHMARK_OS_WINDOWS 1
|
||||||
// WINAPI_FAMILY_PARTITION is defined in winapifamily.h.
|
// WINAPI_FAMILY_PARTITION is defined in winapifamily.h.
|
||||||
// We include windows.h which implicitly includes winapifamily.h for compatibility.
|
// We include windows.h which implicitly includes winapifamily.h for compatibility.
|
||||||
#define NOMINMAX
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#if defined(WINAPI_FAMILY_PARTITION)
|
#if defined(WINAPI_FAMILY_PARTITION)
|
||||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||||
|
Loading…
Reference in New Issue
Block a user