lib/windows/msvcrt/file.rb in windows-pr-0.9.3 vs lib/windows/msvcrt/file.rb in windows-pr-0.9.4

- old
+ new

@@ -20,18 +20,23 @@ API.new('_chmod', 'PI', 'I', MSVCRT_DLL) API.new('_chsize', 'IL', 'I', MSVCRT_DLL) API.new('_mktemp', 'P', 'P', MSVCRT_DLL) API.new('_stat', 'PP', 'I', 'msvcrt') API.new('_stat64', 'PP', 'I', MSVCRT_DLL) + API.new('_umask', 'I', 'I', MSVCRT_DLL) + + # Wide character variants + API.new('_wchmod', 'PI', 'I', MSVCRT_DLL) API.new('_wmktemp', 'P', 'P', MSVCRT_DLL) API.new('_wstat', 'PP', 'I', 'msvcrt') API.new('_wstat64', 'PP', 'I', MSVCRT_DLL) # VC++ 8.0 or later begin API.new('_chsize_s', 'IL', 'I', MSVCRT_DLL) API.new('_mktemp_s', 'PL', 'L', MSVCRT_DLL) + API.new('_umask_s', 'IP', 'L', MSVCRT_DLL) API.new('_wmktemp_s', 'PL', 'L', MSVCRT_DLL) rescue Windows::API::Error # Ignore - you must check for it via 'defined?' end end