From 3ee49f18433e5742892700d1d72c41de314a30c9 Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Sun, 4 Mar 2018 15:43:38 +0900 Subject: [PATCH] Fix undeclared identifier for Apple. --- src/vk_mem_alloc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index c7e6c45..a14d7f2 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1839,6 +1839,11 @@ remove them if not needed. #include // for aligned_alloc() #endif +#ifndef VMA_NULL + // Value used as null pointer. Define it to e.g.: nullptr, NULL, 0, (void*)0. + #define VMA_NULL nullptr +#endif + #if defined(__APPLE__) #include void *aligned_alloc(size_t alignment, size_t size) @@ -1875,11 +1880,6 @@ void *aligned_alloc(size_t alignment, size_t size) #endif #endif -#ifndef VMA_NULL - // Value used as null pointer. Define it to e.g.: nullptr, NULL, 0, (void*)0. - #define VMA_NULL nullptr -#endif - #ifndef VMA_ALIGN_OF #define VMA_ALIGN_OF(type) (__alignof(type)) #endif