From b8288ac9da5d4a39e28680edcc7dc16f650d5983 Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Sun, 19 Nov 2023 18:42:14 -0500 Subject: [PATCH] Fix compilation issue --- include/gtl/phmap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gtl/phmap.hpp b/include/gtl/phmap.hpp index 5d7daca..8a73c90 100644 --- a/include/gtl/phmap.hpp +++ b/include/gtl/phmap.hpp @@ -3085,7 +3085,7 @@ class LockableImpl : public AbslMutex { // Microsoft SRWLOCK support (read and write lock support) // use: `phmap::srwlock` instead of `std::mutex` // -------------------------------------------------------------------------- -#if defined(_MSVC_LANG) && defined(SRWLOCK_INIT) +#if defined(_MSVC_LANG) && (defined(SRWLOCK_INIT) || defined(_SYNCHAPI_H_)) class srwlock { SRWLOCK _lock;