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

fiddle: Update to 1.0.5

This commit is contained in:
Sutou Kouhei 2020-12-22 14:56:47 +09:00 committed by Sutou Kouhei
parent 228fa3ac6e
commit 32849dc1bb
Notes: git 2020-12-23 05:50:22 +09:00
4 changed files with 9 additions and 6 deletions

View file

@ -404,7 +404,7 @@ Outstanding ones only.
* Fiddle
* Update to Fiddle 1.0.4
* Update to Fiddle 1.0.5
* IRB

View file

@ -137,8 +137,10 @@ else
have_func('ffi_closure_alloc', ffi_header)
end
if libffi
$defs << "-DHAVE_FFI_PREP_CIF_VAR"
if libffi_version
if (libffi_version <=> [3, 0, 11]) >= 0
$defs << "-DHAVE_FFI_PREP_CIF_VAR"
end
else
have_func('ffi_prep_cif_var', ffi_header)
end

View file

@ -451,8 +451,9 @@ Init_fiddle_function(void)
* Caller must ensure the underlying function is called in a
* thread-safe manner if running in a multi-threaded process.
*
* Note that many Ruby C-extension APIs are thread-safe to call
* only when the Function is constructed with <code>need_gvl: true</code>.
* Note that it is not thread-safe to use this method to
* directly or indirectly call many Ruby C-extension APIs unless
* you don't pass +need_gvl: true+ to Fiddle::Function#new.
*
* For an example see Fiddle::Function
*

View file

@ -1,3 +1,3 @@
module Fiddle
VERSION = "1.0.4"
VERSION = "1.0.5"
end