mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +00:00
Normalized end of line characters after editing on Apple.
This commit is contained in:
parent
1240398638
commit
94fa0a8e4d
@ -1741,16 +1741,16 @@ remove them if not needed.
|
||||
|
||||
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||
#include <malloc.h> // for aligned_alloc()
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <cstdlib>
|
||||
void *aligned_alloc(size_t alignment, size_t size)
|
||||
{
|
||||
void *pointer;
|
||||
posix_memalign(&pointer, alignment, size);
|
||||
return pointer;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <cstdlib>
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user