[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
@ -81,7 +81,12 @@ module Fiddle
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_snprintf
|
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_VOIDP,
|
||||||
TYPE_SIZE_T,
|
TYPE_SIZE_T,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user