diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-03 05:30:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-03 05:30:21 +0000 |
commit | e60c9b5d956bc3424e4369c5659b39dcc8212702 (patch) | |
tree | 16acbafb10f986fce1a8df0771f46ebde0cceb3d /win32 | |
parent | edb7bc0b4d84fda235aaef2a65728418298d5c1d (diff) | |
download | ruby-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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/file.c | 4 |
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" |