Bug #10027 ยป 10027.diff
gc.c | ||
---|---|---|
#if defined __MINGW32__
|
||
res = __mingw_aligned_malloc(size, alignment);
|
||
#elif defined _WIN32 && !defined __CYGWIN__
|
||
#elif defined _WIN32 && !defined __CYGWIN__ && (!defined _MSC_VER || _MSC_VER >= 1300)
|
||
void *_aligned_malloc(size_t, size_t);
|
||
res = _aligned_malloc(size, alignment);
|
||
#elif defined(HAVE_POSIX_MEMALIGN)
|
||
... | ... | |
{
|
||
#if defined __MINGW32__
|
||
__mingw_aligned_free(ptr);
|
||
#elif defined _WIN32 && !defined __CYGWIN__
|
||
#elif defined _WIN32 && !defined __CYGWIN__ && (!defined _MSC_VER || _MSC_VER >= 1300)
|
||
_aligned_free(ptr);
|
||
#elif defined(HAVE_MEMALIGN) || defined(HAVE_POSIX_MEMALIGN)
|
||
free(ptr);
|