Fixed usage of SRWLOCK from WinAPI. #54 Thanks @wumo !

This commit is contained in:
Adam Sawicki 2019-01-29 12:20:33 +01:00
parent c9bf1003ac
commit cac7d7509e

View File

@ -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: