From 2e37247a5963e504556f125aae90b767cf15c0a0 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Wed, 28 Aug 2024 13:59:30 +0200 Subject: [PATCH] Fix for IntelliSense versus SRWLOCK Fixes #443 - thanks @zongiin --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index b61b2c3..5a2ae79 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -3157,7 +3157,7 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr) std::shared_mutex m_Mutex; }; #define VMA_RW_MUTEX VmaRWMutex - #elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600 + #elif defined(_WIN32) && defined(WINVER) && defined(SRWLOCK_INIT) && WINVER >= 0x0600 // Use SRWLOCK from WinAPI. // Minimum supported client = Windows Vista, server = Windows Server 2008. class VmaRWMutex