Merge pull request #75 from dreamer/steam-runtime-compilation-error

Use fallback aligned_alloc for pre-C++17 glibc++
This commit is contained in:
Adam Sawicki 2019-09-06 14:52:30 +02:00 committed by GitHub
commit bbdcdae100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3314,7 +3314,7 @@ void *aligned_alloc(size_t alignment, size_t size)
return memalign(alignment, size);
}
#elif defined(__APPLE__) || defined(__ANDROID__)
#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
#include <cstdlib>
void *aligned_alloc(size_t alignment, size_t size)
{