aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-03 05:30:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-03 05:30:21 +0000
commite60c9b5d956bc3424e4369c5659b39dcc8212702 (patch)
tree16acbafb10f986fce1a8df0771f46ebde0cceb3d
parentedb7bc0b4d84fda235aaef2a65728418298d5c1d (diff)
downloadruby-e60c9b5d956bc3424e4369c5659b39dcc8212702.tar.gz
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
-rw-r--r--ChangeLog5
-rw-r--r--win32/file.c4
2 files changed, 9 insertions, 0 deletions
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 <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"