From ae3961d7e3a741b7fe7a13fcda5125dcc252b7a5 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Sat, 10 Jul 2021 15:56:10 +0200 Subject: [PATCH] [#79] MinGW now fully unstable supported... I guess Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- config/lib/vma/vma.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp index 889407c5..d7c184dc 100644 --- a/config/lib/vma/vma.cpp +++ b/config/lib/vma/vma.cpp @@ -14,9 +14,13 @@ public: }; #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))) +#endif + #define VMA_SYSTEM_FREE(ptr) free(ptr) #endif -- GitLab