Skip to content

Commit

Permalink
Fix for IntelliSense versus SRWLOCK
Browse files Browse the repository at this point in the history
Fixes #443 - thanks @zongiin
  • Loading branch information
adam-sawicki-a committed Aug 28, 2024
1 parent 9456069 commit 2e37247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e37247

Please sign in to comment.