summaryrefslogtreecommitdiff
path: root/win32/file.c
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
commit3e5988b29d605bde0ea1ff651e8a5c3de8228a23 (patch)
tree16acbafb10f986fce1a8df0771f46ebde0cceb3d /win32/file.c
parente0ec0c7dc4c7ad50d54a05ccb471caa791b9d445 (diff)
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
Diffstat (limited to 'win32/file.c')
-rw-r--r--win32/file.c4
1 files changed, 4 insertions, 0 deletions
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"