diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index cc9d52c..24d4a44 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1741,16 +1741,16 @@ remove them if not needed. #if !defined(_WIN32) && !defined(__APPLE__) #include // for aligned_alloc() -#endif - -#if defined(__APPLE__) -#include -void *aligned_alloc(size_t alignment, size_t size) -{ - void *pointer; - posix_memalign(&pointer, alignment, size); - return pointer; -} +#endif + +#if defined(__APPLE__) +#include +void *aligned_alloc(size_t alignment, size_t size) +{ + void *pointer; + posix_memalign(&pointer, alignment, size); + return pointer; +} #endif // Normal assert to check for programmer's errors, especially in Debug configuration.