From 91949cf6ff9dd31a79434c76688312549ce62be2 Mon Sep 17 00:00:00 2001
From: Tobias Frisch <tfrisch@uni-koblenz.de>
Date: Sat, 10 Jul 2021 15:20:31 +0200
Subject: [PATCH] [#79] Probably mutex still broken on MinGW... but maybe the
 alloc() works now

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

diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp
index 93df5359..b8409541 100644
--- a/config/lib/vma/vma.cpp
+++ b/config/lib/vma/vma.cpp
@@ -3,8 +3,8 @@
 #define _DEBUG
 #endif
 
-#ifdef __MINGW32__
-
+#ifndef _MSVC_LANG
+#include <stdlib.h>
 #include <mutex>
 
 class VmaMutex {
@@ -16,7 +16,6 @@ private:
 };
 
 #define VMA_MUTEX VmaMutex
-
 #define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size) ))
 #define VMA_SYSTEM_FREE(ptr) free(ptr)
 #endif
-- 
GitLab