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