From 5b24326279dc24acb361141ec8f4a87fd7355006 Mon Sep 17 00:00:00 2001
From: Tobias Frisch <tfrisch@uni-koblenz.de>
Date: Sat, 10 Jul 2021 13:01:05 +0200
Subject: [PATCH] [#79] Potential fix for MinGW problems with VMA

Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de>
---
 config/lib/vma/vma.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp
index 0928b552..ab440b90 100644
--- a/config/lib/vma/vma.cpp
+++ b/config/lib/vma/vma.cpp
@@ -1,7 +1,17 @@
 
+#include <mutex>
+
 #ifndef NDEBUG
 #define _DEBUG
 #endif
 
+#ifndef _WIN32
+
+#ifndef _aligned_malloc
+#define _aligned_malloc(alignment, size) aligned_alloc((alignment), (size))
+#endif
+
+#endif
+
 #define VMA_IMPLEMENTATION
 #include "vk_mem_alloc.hpp"
-- 
GitLab