mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fiddle] test windows: use _snprintf
https://github.com/ruby/fiddle/commit/aa261bdb9f
This commit is contained in:
parent
6429b6d973
commit
a40b390b17
Notes:
git
2020-06-28 02:03:18 +09:00
1 changed files with 6 additions and 1 deletions
|
@ -81,7 +81,12 @@ module Fiddle
|
|||
end
|
||||
|
||||
def test_snprintf
|
||||
snprintf = Function.new(@libc["snprintf"],
|
||||
if Fiddle::WINDOWS
|
||||
snprintf_name = "_snprintf"
|
||||
else
|
||||
snprintf_name = "snprintf"
|
||||
end
|
||||
snprintf = Function.new(@libc[snprintf_name],
|
||||
[
|
||||
TYPE_VOIDP,
|
||||
TYPE_SIZE_T,
|
||||
|
|
Loading…
Add table
Reference in a new issue