From cac7d7509eef9b355e5fac03602b8228b4c94612 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 29 Jan 2019 12:20:33 +0100 Subject: [PATCH] Fixed usage of SRWLOCK from WinAPI. #54 Thanks @wumo ! --- src/vk_mem_alloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 9001120..6d57532 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -3330,8 +3330,9 @@ void *aligned_alloc(size_t alignment, size_t size) std::shared_mutex m_Mutex; }; #define VMA_RW_MUTEX VmaRWMutex - #elif defined(_WIN32) + #elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600 // Use SRWLOCK from WinAPI. + // Minimum supported client = Windows Vista, server = Windows Server 2008. class VmaRWMutex { public: