Skip to content

Commit

Permalink
Fix ABSL_WAITER_MODE detection for mingw (#342)
Browse files Browse the repository at this point in the history
* Fix ABSL_WAITER_MODE detection for mingw
  • Loading branch information
jtsylve authored and suertreus committed Oct 10, 2019
1 parent abea769 commit e9f9000
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions absl/synchronization/internal/waiter.h
Expand Up @@ -18,7 +18,9 @@

#include "absl/base/config.h"

#ifndef _WIN32
#ifdef _WIN32
#include <SdkDdkVer.h>
#else
#include <pthread.h>
#endif

Expand All @@ -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
Expand Down

0 comments on commit e9f9000

Please sign in to comment.