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

ruby-changes:31684

From: nobu <ko1@a...>
Date: Thu, 21 Nov 2013 20:41:22 +0900 (JST)
Subject: [ruby-changes:31684] nobu:r43763 (trunk): * gc.c: needs malloc.h if malloc_usable_size() is available.

nobu	2013-11-21 20:41:16 +0900 (Thu, 21 Nov 2013)

  New Revision: 43763

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

  Log:
    * gc.c: needs malloc.h if malloc_usable_size() is available.

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 43762)
+++ gc.c	(revision 43763)
@@ -39,6 +39,8 @@ https://github.com/ruby/ruby/blob/trunk/gc.c#L39
 # ifdef _WIN32
 #   define malloc_usable_size(a) _msize(a)
 # endif
+#else
+# include <malloc.h>
 #endif
 
 #if /* is ASAN enabled? */ \

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

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