1
0
Fork 0
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:
Sutou Kouhei 2020-06-27 08:31:59 +09:00 committed by Nobuyoshi Nakada
parent 6429b6d973
commit a40b390b17
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-06-28 02:03:18 +09:00

View file

@ -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,