diff options
author | Derek Mauro <dmauro@google.com> | 2023-11-08 09:55:31 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-11-08 09:56:16 -0800 |
commit | 2f77684e8dc473a48dbc19167ffe69c40ce8ada4 (patch) | |
tree | 37d132e04ccc6feb2e7ff7478963c035429de1c8 /absl/synchronization/internal/win32_waiter.h | |
parent | 8aff21b705e9071f54db9fb473f782c7ab0a0f3b (diff) |
Avoid using both Win32Waiter and PthreadWaiter on MinGW,
and use StdcppWaiter instead.
There are various flavors of MinGW, some of which support pthread,
and some of which support Win32. Instead of figuring out which
platform is being used, just use the generic implementation.
PiperOrigin-RevId: 580565507
Change-Id: Ia85fd7496f1e6ebdeadb95202f0039e844826118
Diffstat (limited to 'absl/synchronization/internal/win32_waiter.h')
-rw-r--r-- | absl/synchronization/internal/win32_waiter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/absl/synchronization/internal/win32_waiter.h b/absl/synchronization/internal/win32_waiter.h index 87eb617c..fdab264e 100644 --- a/absl/synchronization/internal/win32_waiter.h +++ b/absl/synchronization/internal/win32_waiter.h @@ -20,7 +20,8 @@ #include <sdkddkver.h> #endif -#if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA +#if defined(_WIN32) && !defined(__MINGW32__) && \ + _WIN32_WINNT >= _WIN32_WINNT_VISTA #include "absl/base/config.h" #include "absl/synchronization/internal/kernel_timeout.h" @@ -65,6 +66,7 @@ class Win32Waiter : public WaiterCrtp<Win32Waiter> { ABSL_NAMESPACE_END } // namespace absl -#endif // defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA +#endif // defined(_WIN32) && !defined(__MINGW32__) && + // _WIN32_WINNT >= _WIN32_WINNT_VISTA #endif // ABSL_SYNCHRONIZATION_INTERNAL_WIN32_WAITER_H_ |