Skip to content

Commit

Permalink
Support Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Sep 1, 2019
1 parent 4f2a60a commit fdb8fca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/attribute_builder/attribute_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#define rb_utf8_str_new(ptr, len) rb_enc_str_new(ptr, len, rb_utf8_encoding())
#endif

#if RUBY_API_VERSION_MAJOR == 2 && RUBY_API_VERSION_MINOR < 7
#define FOREACH_FUNC(func) reinterpret_cast<int (*)(ANYARGS)>(func)
#endif

VALUE rb_mAttributeBuilder;
static ID id_flatten;
Expand Down

0 comments on commit fdb8fca

Please sign in to comment.