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

[#79] Next try to fix MinGW issues

parent 5aedcd22
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
Pipeline #26319 passed
#include <mutex>
#ifndef NDEBUG
#define _DEBUG
#endif
#ifndef _WIN32
#ifdef __MINGW32__
#ifndef _aligned_malloc
#define _aligned_malloc(alignment, size) aligned_alloc((alignment), (size))
#endif
#include <mutex>
class VmaMutex {
public:
void Lock() { m_Mutex.lock(); }
void Unlock() { m_Mutex.unlock(); }
private:
std::mutex m_Mutex;
};
#define VMA_MUTEX VmaMutex
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size) ))
#define VMA_SYSTEM_FREE(ptr) free(ptr)
#endif
#define VMA_IMPLEMENTATION
......
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