Fix ABSL_WAITER_MODE detection for mingw (#342)

* Fix ABSL_WAITER_MODE detection for mingw
This commit is contained in:
Joe Sylve 2019-10-10 15:51:23 -05:00 committed by Andy Getz
parent abea769b55
commit e9f9000c7c

View file

@ -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