summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-28 09:59:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-28 09:59:35 +0000
commitefd36e71045228c1dcdffda36636bcd80c8e604c (patch)
treeaa2997ff047a4ad4d91e6e6d9c3dc5e84f2eb404 /spec/ruby
parentd0fb73a0f0b82ebc0d3eb931c28686a2b9c40fef (diff)
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
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/optional/capi/ext/encoding_spec.c8
1 files changed, 2 insertions, 6 deletions
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