[前][次][番号順一覧][スレッド一覧]

ruby-changes:61234

From: Yusuke <ko1@a...>
Date: Wed, 13 May 2020 10:58:18 +0900 (JST)
Subject: [ruby-changes:61234] b68dab8667 (master): ext/fiddle/extconf.rb: Fix the condition of libffi <= 3.1

https://git.ruby-lang.org/ruby.git/commit/?id=b68dab8667

From b68dab866724aacc1cbc6b7d5e1f555dec092346 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Wed, 13 May 2020 10:57:14 +0900
Subject: 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]

diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 35e5a31..f8a94d4 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -122,7 +122,7 @@ end https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extconf.rb#L122
 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]