diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 623f860..325375f 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -3302,7 +3302,7 @@ void *aligned_alloc(size_t alignment, size_t size) return memalign(alignment, size); } -#elif defined(__APPLE__) || defined(__ANDROID__) +#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) #include void *aligned_alloc(size_t alignment, size_t size) {