diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win32/file.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Jul 3 14:30:18 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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@ruby-lang.org> * 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" |