[前][次][番号順一覧][スレッド一覧]

ruby-changes:27957

From: nobu <ko1@a...>
Date: Sun, 31 Mar 2013 06:08:42 +0900 (JST)
Subject: [ruby-changes:27957] nobu:r40009 (trunk): gc.c: _aligned_malloc

nobu	2013-03-31 06:08:30 +0900 (Sun, 31 Mar 2013)

  New Revision: 40009

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40009

  Log:
    gc.c: _aligned_malloc
    
    * gc.c (aligned_malloc): declare _aligned_malloc() prototype for old VC.

  Modified files:
    trunk/gc.c

Index: gc.c
===================================================================
--- gc.c	(revision 40008)
+++ gc.c	(revision 40009)
@@ -3450,6 +3450,7 @@ aligned_malloc(size_t alignment, size_t https://github.com/ruby/ruby/blob/trunk/gc.c#L3450
 #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) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]