зеркало из https://github.com/github/ruby.git
* gc.c (aligned_free): support MinGW. Patch by Hiroshi Shirosaki.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
94fd32b80a
Коммит
cd73f29465
|
@ -1,3 +1,7 @@
|
|||
Sun Jan 8 11:54:43 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c (aligned_free): support MinGW. Patch by Hiroshi Shirosaki.
|
||||
|
||||
Sun Jan 8 11:43:05 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c (slot_sweep): add a assertion instead of a debug print.
|
||||
|
|
4
gc.c
4
gc.c
|
@ -1081,7 +1081,9 @@ aligned_malloc(size_t aligned_size)
|
|||
static void
|
||||
aligned_free(void *ptr)
|
||||
{
|
||||
#if _WIN32 || defined __CYGWIN__
|
||||
#if __MINGW32__
|
||||
__mingw_aligned_free(ptr);
|
||||
#elif _WIN32 || defined __CYGWIN__
|
||||
_aligned_free(ptr);
|
||||
#else
|
||||
free(ptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче