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

ruby-changes:42510

From: nobu <ko1@a...>
Date: Fri, 15 Apr 2016 08:06:06 +0900 (JST)
Subject: [ruby-changes:42510] nobu:r54585 (trunk): io/console: fallback RARRAY_CONST_PTR

nobu	2016-04-15 09:02:42 +0900 (Fri, 15 Apr 2016)

  New Revision: 54585

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54585

  Log:
    io/console: fallback RARRAY_CONST_PTR
    
    * ext/io/console/console.c (RARRAY_CONST_PTR): fallback definition
      for older ruby.

  Modified files:
    trunk/ext/io/console/console.c
Index: ext/io/console/console.c
===================================================================
--- ext/io/console/console.c	(revision 54584)
+++ ext/io/console/console.c	(revision 54585)
@@ -14,6 +14,9 @@ https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L14
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif
+#ifndef RARRAY_CONST_PTR
+# define RARRAY_CONST_PTR(ary) RARRAY_PTR(ary)
+#endif
 
 #if defined HAVE_TERMIOS_H
 # include <termios.h>

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

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