- use fallback implementation for C++ aligned_alloc

This function was introduced in C++17, then backported to older versions
of glibc++ library, but is not available in older releases (it's missing
from Ubuntu 12.04 derived SteamRT for example).
This commit is contained in:
Patryk Obara 2019-08-16 15:59:51 +02:00 committed by alexey.lysiuk
parent f317f69776
commit 4c98b69b6b

View file

@ -2238,7 +2238,7 @@ remove them if not needed.
#define VMA_NULL nullptr
#endif
#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__)
#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__) || (defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
#include <cstdlib>
void *aligned_alloc(size_t alignment, size_t size)
{