diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-30 21:08:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-30 21:08:30 +0000 |
commit | ae422dda781388d16ee8333867e913ba0b7b174d (patch) | |
tree | 6aedef05081777c7f32e3a665adcdabf4b61f617 | |
parent | 30feef61443b8758116afa022239001f9d93eae4 (diff) | |
download | ruby-ae422dda781388d16ee8333867e913ba0b7b174d.tar.gz |
gc.c: _aligned_malloc
* gc.c (aligned_malloc): declare _aligned_malloc() prototype for old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3450,6 +3450,7 @@ aligned_malloc(size_t alignment, size_t size) #if defined __MINGW32__ res = __mingw_aligned_malloc(size, alignment); #elif defined _WIN32 && !defined __CYGWIN__ + void *_aligned_malloc(size_t, size_t); res = _aligned_malloc(size, alignment); #elif defined(HAVE_POSIX_MEMALIGN) if (posix_memalign(&res, alignment, size) == 0) { |