From: matz@... (Yukihiro Matsumoto) Date: 2001-03-22T15:58:13+09:00 Subject: [ruby-dev:12611] Re: extern inline (ruby.h) ruby-1.6.3 まつもと ゆきひろです In message "[ruby-dev:12608] Re: extern inline (ruby.h) ruby-1.6.3" on 01/03/22, Yukihiro Matsumoto writes: |ac_cv_c_inlineの値はなにになってますか? noかな? noだと仮定して、以下のパッチはどうでしょう? 1.7用ですが、 1.6にもそのまま当たるはずです。 --- --- ruby.h 2001/03/21 03:51:23 1.40 +++ ruby.h 2001/03/22 06:56:12 @@ -547,7 +547,6 @@ -#ifndef RUBY_NO_INLINE -extern inline -#endif -VALUE -rb_class_of(VALUE obj) +#if !defined(NO_C_INLINE) || defined(INLINE_DEFINE) +extern inline VALUE +rb_class_of(obj) + VALUE obj; { @@ -562,7 +561,5 @@ -#ifndef RUBY_NO_INLINE -extern inline -#endif -int -rb_type(VALUE obj) +extern inline int +rb_type(obj) + VALUE obj; { @@ -577,7 +574,5 @@ -#ifndef RUBY_NO_INLINE -extern inline -#endif -int -rb_special_const_p(VALUE obj) +extern inline int +rb_special_const_p(obj) + VALUE obj; { @@ -586,2 +581,3 @@ } +#endif --- configure.in 2001/03/16 08:17:44 1.81 +++ configure.in 2001/03/22 06:56:12 @@ -376,3 +376,2 @@ -AC_C_INLINE AC_C_BIGENDIAN @@ -380,2 +379,6 @@ AC_C_CHAR_UNSIGNED +AC_C_INLINE +if test "$rb_cv_c_inline" = no; then + AC_DEFINE(NO_C_INLINE) +fi --- util.c 2001/03/21 04:18:10 1.15 +++ util.c 2001/03/22 06:56:12 @@ -18,3 +18,3 @@ -#define RUBY_NO_INLINE +#define INLINE_DEFINE #include "ruby.h"