diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 02:59:04 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 02:59:04 +0000 |
commit | cd73f29465310e55f36e001a7964f4be3d2a833a (patch) | |
tree | d84449a8b03a224cab5d0b116fd9fd850dc64dfc | |
parent | 94fd32b80a585750427836a1e22d05c0ee3d09ad (diff) | |
download | ruby-cd73f29465310e55f36e001a7964f4be3d2a833a.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 4 |
2 files changed, 7 insertions, 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> * gc.c (slot_sweep): add a assertion instead of a debug print. @@ -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); |