From e60c9b5d956bc3424e4369c5659b39dcc8212702 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 3 Jul 2015 05:30:21 +0000 Subject: file.c: _wfreopen_s on mingw * win32/file.c: some mingw compilers need a tweek for the declarations of _wfreopen_s. [Bug #11320] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ win32/file.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9316512522..5e304ff045 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 3 14:30:18 2015 Nobuyoshi Nakada + + * 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 * transcode.c (rb_econv_set_replacement): target encoding name can diff --git a/win32/file.c b/win32/file.c index 16fa8f5c1c..5353c546e2 100644 --- a/win32/file.c +++ b/win32/file.c @@ -1,3 +1,7 @@ +#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" -- cgit v1.2.3