ruby-changes:39036
From: nobu <ko1@a...>
Date: Fri, 3 Jul 2015 14:30:47 +0900 (JST)
Subject: [ruby-changes:39036] nobu:r51117 (trunk): file.c: _wfreopen_s on mingw
nobu 2015-07-03 14:30:21 +0900 (Fri, 03 Jul 2015) New Revision: 51117 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51117 Log: file.c: _wfreopen_s on mingw * win32/file.c: some mingw compilers need a tweek for the declarations of _wfreopen_s. [Bug #11320] Modified files: trunk/ChangeLog trunk/win32/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51116) +++ ChangeLog (revision 51117) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jul 3 14:30:18 2015 Nobuyoshi Nakada <nobu@r...> + + * win32/file.c: some mingw compilers need a tweek for the + declarations of _wfreopen_s. [Bug #11320] + Fri Jul 3 12:25:19 2015 Nobuyoshi Nakada <nobu@r...> * transcode.c (rb_econv_set_replacement): target encoding name can Index: win32/file.c =================================================================== --- win32/file.c (revision 51116) +++ win32/file.c (revision 51117) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/win32/file.c#L1 +#if defined(__MINGW32__) +/* before stdio.h in ruby/define.h */ +# define MINGW_HAS_SECURE_API 1 +#endif #include "ruby/ruby.h" #include "ruby/encoding.h" #include "ruby/thread.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/