From efd36e71045228c1dcdffda36636bcd80c8e604c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 28 Jun 2018 09:59:35 +0000 Subject: fix feature name and removed a duplicate condition git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/optional/capi/ext/encoding_spec.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'spec/ruby') diff --git a/spec/ruby/optional/capi/ext/encoding_spec.c b/spec/ruby/optional/capi/ext/encoding_spec.c index 2e555ebc77..6f4057865b 100644 --- a/spec/ruby/optional/capi/ext/encoding_spec.c +++ b/spec/ruby/optional/capi/ext/encoding_spec.c @@ -173,9 +173,7 @@ static VALUE encoding_spec_rb_enc_get_index(VALUE self, VALUE obj) { } #endif -#if defined(HAVE_RB_ENC_SET_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) +#if defined(HAVE_RB_ENC_SET_INDEX) && defined(HAVE_RB_ENC_FROM_INDEX) static VALUE encoding_spec_rb_enc_set_index(VALUE self, VALUE obj, VALUE index) { int i = NUM2INT(index); @@ -376,9 +374,7 @@ void Init_encoding_spec(void) { rb_define_method(cls, "rb_enc_get_index", encoding_spec_rb_enc_get_index, 1); #endif -#if defined(HAVE_RB_ENC_SET_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) +#if defined(HAVE_RB_ENC_SET_INDEX) && defined(HAVE_RB_ENC_FROM_INDEX) rb_define_method(cls, "rb_enc_set_index", encoding_spec_rb_enc_set_index, 2); #endif -- cgit v1.2.3