mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
94fd32b80a
commit
cd73f29465
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
Sun Jan 8 11:43:05 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||||
|
|
||||||
* gc.c (slot_sweep): add a assertion instead of a debug print.
|
* 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
|
static void
|
||||||
aligned_free(void *ptr)
|
aligned_free(void *ptr)
|
||||||
{
|
{
|
||||||
#if _WIN32 || defined __CYGWIN__
|
#if __MINGW32__
|
||||||
|
__mingw_aligned_free(ptr);
|
||||||
|
#elif _WIN32 || defined __CYGWIN__
|
||||||
_aligned_free(ptr);
|
_aligned_free(ptr);
|
||||||
#else
|
#else
|
||||||
free(ptr);
|
free(ptr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue