Fix for IntelliSense versus SRWLOCK

Fixes #443 - thanks @zongiin
This commit is contained in:
Adam Sawicki 2024-08-28 13:59:30 +02:00
parent 945606926b
commit 2e37247a59

View File

@ -3157,7 +3157,7 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr)
std::shared_mutex m_Mutex; std::shared_mutex m_Mutex;
}; };
#define VMA_RW_MUTEX VmaRWMutex #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. // Use SRWLOCK from WinAPI.
// Minimum supported client = Windows Vista, server = Windows Server 2008. // Minimum supported client = Windows Vista, server = Windows Server 2008.
class VmaRWMutex class VmaRWMutex