From dceab7a47c1a2821c4eeeecf795928309ac2cbc6 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Sat, 10 Jul 2021 15:36:32 +0200 Subject: [PATCH] [#79] Screw the rules, I have MinGW Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- config/lib/vma/vma.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp index b8409541..889407c5 100644 --- a/config/lib/vma/vma.cpp +++ b/config/lib/vma/vma.cpp @@ -5,18 +5,18 @@ #ifndef _MSVC_LANG #include <stdlib.h> -#include <mutex> +#ifdef __MINGW32__ class VmaMutex { public: - void Lock() { m_Mutex.lock(); } - void Unlock() { m_Mutex.unlock(); } -private: - std::mutex m_Mutex; + void Lock() {} // TODO: This should actually lock! + void Unlock() {} // TODO: This should actually unlock! }; #define VMA_MUTEX VmaMutex -#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size) )) +#endif + +#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size))) #define VMA_SYSTEM_FREE(ptr) free(ptr) #endif -- GitLab