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

[#79] Screw the rules, I have MinGW

parent 91949cf6
No related branches found
No related tags found
1 merge request!80Resolve "MinGW corrections for the hacks"
......@@ -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
......
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