mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
Change __alignof to alignof
Whereas __alignof is a non-standard compiler extension that seems to come from Microsoft and is supported (yet undocumented) by Clang and GCC, alignof is a standard language feature in C++11. Clang and GCC both document __alignof__ as a compiler extension, but this isn't supported by Microsoft. This fixes builds on compilers that don't support __alignof.
This commit is contained in:
parent
66afe099f1
commit
d16730ce64
1 changed files with 1 additions and 1 deletions
|
@ -2806,7 +2806,7 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VMA_ALIGN_OF
|
#ifndef VMA_ALIGN_OF
|
||||||
#define VMA_ALIGN_OF(type) (__alignof(type))
|
#define VMA_ALIGN_OF(type) (alignof(type))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VMA_SYSTEM_ALIGNED_MALLOC
|
#ifndef VMA_SYSTEM_ALIGNED_MALLOC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue