diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-13 10:57:14 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-13 10:57:14 +0900 |
commit | b68dab866724aacc1cbc6b7d5e1f555dec092346 (patch) | |
tree | 8b1677309261f0421fc687c750d438a7285b74b5 /ext/fiddle | |
parent | de29a022acb93691dfc50db852cb04f763565072 (diff) | |
download | ruby-b68dab866724aacc1cbc6b7d5e1f555dec092346.tar.gz |
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]
Diffstat (limited to 'ext/fiddle')
-rw-r--r-- | ext/fiddle/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 35e5a312ab..f8a94d41e7 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -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 |