1
0
Fork 0
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:
nari 2012-01-08 02:59:04 +00:00
parent 94fd32b80a
commit cd73f29465
2 changed files with 7 additions and 1 deletions

View file

@ -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
View file

@ -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);