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:
parent
de29a022ac
commit
b68dab8667
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue