Fix for aligned_alloc for Windows GCC

As discussed in ff9ac65fe2
This commit is contained in:
Adam Sawicki 2019-09-16 11:28:24 +02:00
parent bbdcdae100
commit 909f36b714

View File

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