1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ext/fiddle/extconf.rb: Fix the condition of libffi <= 3.1

ver is [3, 1, 0] which is not less then or equal to [3, 1]
This commit is contained in:
Yusuke Endoh 2020-05-13 10:57:14 +09:00
parent de29a022ac
commit b68dab8667

View file

@ -122,7 +122,7 @@ end
case
when $mswin, $mingw, (ver && (ver <=> [3, 2]) >= 0)
$defs << "-DUSE_FFI_CLOSURE_ALLOC=1"
when (ver && (ver <=> [3, 1]) <= 0)
when (ver && (ver <=> [3, 2]) < 0)
else
have_func('ffi_closure_alloc', ffi_header)
end