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
@ -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…
x
Reference in New Issue
Block a user