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

[#79] MinGW now fully unstable supported... I guess

parent dceab7a4
No related branches found
No related tags found
1 merge request!80Resolve "MinGW corrections for the hacks"
...@@ -14,9 +14,13 @@ public: ...@@ -14,9 +14,13 @@ public:
}; };
#define VMA_MUTEX VmaMutex #define VMA_MUTEX VmaMutex
#endif
// TODO: This is not actually a valid way to do aligned allocations!
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (malloc(size))
#else
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size))) #define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size)))
#endif
#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