Skip to content

Commit 2e37247

Browse files
Fix for IntelliSense versus SRWLOCK
Fixes #443 - thanks @zongiin
1 parent 9456069 commit 2e37247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr)
31573157
std::shared_mutex m_Mutex;
31583158
};
31593159
#define VMA_RW_MUTEX VmaRWMutex
3160-
#elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600
3160+
#elif defined(_WIN32) && defined(WINVER) && defined(SRWLOCK_INIT) && WINVER >= 0x0600
31613161
// Use SRWLOCK from WinAPI.
31623162
// Minimum supported client = Windows Vista, server = Windows Server 2008.
31633163
class VmaRWMutex

0 commit comments

Comments
 (0)