diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp
index 93df53593d0cd9c76744f3bc321ca0289af9a587..b8409541c679ee1ee220af4454164af5e8a66a55 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