diff options
author | Joe Sylve <Joe.Sylve@gmail.com> | 2019-10-10T20·51-0500 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2019-10-10T20·51-0400 |
commit | e9f9000c7c80993cb589d011616b7a8016e42f4a (patch) | |
tree | 086d78ccafe68575985de66bd15b0b886e882ea3 /absl/synchronization/internal/waiter.h | |
parent | abea769b551f7a100f540967cb95debdb0080df8 (diff) |
Fix ABSL_WAITER_MODE detection for mingw (#342)
* Fix ABSL_WAITER_MODE detection for mingw
Diffstat (limited to 'absl/synchronization/internal/waiter.h')
-rw-r--r-- | absl/synchronization/internal/waiter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/absl/synchronization/internal/waiter.h b/absl/synchronization/internal/waiter.h index a3e3124e4417..0757b91d79da 100644 --- a/absl/synchronization/internal/waiter.h +++ b/absl/synchronization/internal/waiter.h @@ -18,7 +18,9 @@ #include "absl/base/config.h" -#ifndef _WIN32 +#ifdef _WIN32 +#include <SdkDdkVer.h> +#else #include <pthread.h> #endif @@ -40,7 +42,7 @@ #if defined(ABSL_FORCE_WAITER_MODE) #define ABSL_WAITER_MODE ABSL_FORCE_WAITER_MODE -#elif defined(_WIN32) +#elif defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA #define ABSL_WAITER_MODE ABSL_WAITER_MODE_WIN32 #elif defined(__linux__) #define ABSL_WAITER_MODE ABSL_WAITER_MODE_FUTEX |