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

[#79] Probably mutex still broken on MinGW... but maybe the alloc() works now

parent 680a1df2
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
Pipeline #26320 passed
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
#define _DEBUG #define _DEBUG
#endif #endif
#ifdef __MINGW32__ #ifndef _MSVC_LANG
#include <stdlib.h>
#include <mutex> #include <mutex>
class VmaMutex { class VmaMutex {
...@@ -16,7 +16,6 @@ private: ...@@ -16,7 +16,6 @@ private:
}; };
#define VMA_MUTEX VmaMutex #define VMA_MUTEX VmaMutex
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size) )) #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