mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 23:41:48 +00:00
- 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:
parent
f317f69776
commit
4c98b69b6b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue