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__)
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
#include <malloc.h> // for aligned_alloc()
|
#include <malloc.h> // for aligned_alloc()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
void *aligned_alloc(size_t alignment, size_t size)
|
void *aligned_alloc(size_t alignment, size_t size)
|
||||||
{
|
{
|
||||||
void *pointer;
|
void *pointer;
|
||||||
posix_memalign(&pointer, alignment, size);
|
posix_memalign(&pointer, alignment, size);
|
||||||
return pointer;
|
return pointer;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Normal assert to check for programmer's errors, especially in Debug configuration.
|
// Normal assert to check for programmer's errors, especially in Debug configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user