about summary refs log tree commit diff
path: root/absl
diff options
context:
space:
mode:
authorJoe Sylve <Joe.Sylve@gmail.com>2019-10-10T20·51-0500
committerAndy Getz <durandal@google.com>2019-10-10T20·51-0400
commite9f9000c7c80993cb589d011616b7a8016e42f4a (patch)
tree086d78ccafe68575985de66bd15b0b886e882ea3 /absl
parentabea769b551f7a100f540967cb95debdb0080df8 (diff)
Fix ABSL_WAITER_MODE detection for mingw (#342)
* Fix ABSL_WAITER_MODE detection for mingw
Diffstat (limited to 'absl')
-rw-r--r--absl/synchronization/internal/waiter.h6
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