"Fossies" - the Fresh Open Source Software Archive 
Member "qt-everywhere-src-6.3.1/qtbase/src/3rdparty/VulkanMemoryAllocator/patches/0001-Disable-SRWLOCK-for-MinGW.patch" (25 May 2022, 1115 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 From 1e4a10230381acc79768fd577987dde4255d6148 Mon Sep 17 00:00:00 2001
2 From: Laszlo Agocs <laszlo.agocs@qt.io>
3 Date: Thu, 14 Jan 2021 11:22:09 +0100
4 Subject: [PATCH 1/4] Disable SRWLOCK for MinGW
5
6 Change-Id: Ie671e7bcf88ef28eb177a6fba17964a5e8ae30c0
7 ---
8 src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h b/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
12 index 0dfb66efc6..8e579967d9 100644
13 --- a/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
14 +++ b/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h
15 @@ -3691,7 +3691,7 @@ void *aligned_alloc(size_t alignment, size_t size)
16 std::shared_mutex m_Mutex;
17 };
18 #define VMA_RW_MUTEX VmaRWMutex
19 - #elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600
20 + #elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600 && !defined(__MINGW32__)
21 // Use SRWLOCK from WinAPI.
22 // Minimum supported client = Windows Vista, server = Windows Server 2008.
23 class VmaRWMutex
24 --
25 2.23.0.windows.1
26