fuzzy-string-match
fuzzy-string-match copied to clipboard
Native support under Ruby 3.2: RUBY_API_VERSION_[MAJOR/MINOR] is not defined
When using the native version on Ruby 3.2, the following warning is thrown:
[1] pry(main)> require "fuzzystringmatch"
=> true
[2] pry(main)> jarow = FuzzyStringMatch::JaroWinkler.create(:native)
In file included from /Users/arice/.ruby_inline/ruby-3.2.0/Inline_FuzzyStringMatch__JaroWinklerInline_b28bdb41b9c5ed658e673cdd79216695.c:1:
In file included from /Users/arice/.asdf/installs/ruby/3.2.0/include/ruby-3.2.0/ruby.h:38:
In file included from /Users/arice/.asdf/installs/ruby/3.2.0/include/ruby-3.2.0/ruby/ruby.h:27:
In file included from /Users/arice/.asdf/installs/ruby/3.2.0/include/ruby-3.2.0/ruby/internal/anyargs.h:83:
/Users/arice/.asdf/installs/ruby/3.2.0/include/ruby-3.2.0/ruby/backward/cxxanyargs.hpp:540:6: warning: 'RUBY_API_VERSION_MAJOR' is not
defined, evaluates to 0 [-Wundef]
#if (RUBY_API_VERSION_MAJOR * 100 + RUBY_API_VERSION_MINOR) >= 301
^
/Users/arice/.asdf/installs/ruby/3.2.0/include/ruby-3.2.0/ruby/backward/cxxanyargs.hpp:540:37: warning: 'RUBY_API_VERSION_MINOR' is
not defined, evaluates to 0 [-Wundef]
#if (RUBY_API_VERSION_MAJOR * 100 + RUBY_API_VERSION_MINOR) >= 301
^
2 warnings generated.