summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-03 06:18:36 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-03 06:18:36 (GMT)
commit83f76f46c7029b0a6c34f4c9e50096116081e38d (patch)
tree4b4ef0c7f2c96dcbbb496aef79c571e0b5cf2743 /util.c
parent85ac60cfd169a48658aa5f410c48d5878aca2227 (diff)
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/trunk@57763 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 b118bdf..4ae7c4f 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>