summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 16:22:05 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 16:22:05 +0000
commit4049bc35f5191b4fc638fc735a98565dd9a75f02 (patch)
tree811d462fe460b2cdaeb4168f6ad0c8b86b707ce6 /util.c
parent3e3b06b8c265b1012bed0bb76e299eb6e3698571 (diff)
merge revision(s) 57763:
fix for mingw64 * util.c: define MINGW_HAS_SECURE_API for qsort_s on recent mingw64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index b118bdf21a..4ae7c4fc96 100644
--- a/util.c
+++ b/util.c
@@ -9,6 +9,10 @@
**********************************************************************/
+#if defined __MINGW32__ || defined __MINGW64__
+#define MINGW_HAS_SECURE_API 1
+#endif
+
#include "internal.h"
#include <ctype.h>