Skip to content
Snippets Groups Projects
Verified Commit a85b85b7 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#79] Screw the rules, I have MinGW

parent 747aca71
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
Pipeline #26321 passed
...@@ -5,18 +5,18 @@ ...@@ -5,18 +5,18 @@
#ifndef _MSVC_LANG #ifndef _MSVC_LANG
#include <stdlib.h> #include <stdlib.h>
#include <mutex>
#ifdef __MINGW32__
class VmaMutex { class VmaMutex {
public: public:
void Lock() { m_Mutex.lock(); } void Lock() {} // TODO: This should actually lock!
void Unlock() { m_Mutex.unlock(); } void Unlock() {} // TODO: This should actually unlock!
private:
std::mutex m_Mutex;
}; };
#define VMA_MUTEX VmaMutex #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) #define VMA_SYSTEM_FREE(ptr) free(ptr)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment