diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-11 08:18:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-11 08:18:56 +0000 |
commit | be4b1c1e2c55fb812d6ad2b9d88c5357e06a9f9e (patch) | |
tree | 5352fc82b67f50120c5272353eea60a327d60400 /win32 | |
parent | d22cf0de18178ce38cb64a434983047f2e62eac5 (diff) |
util.c: qsort_s
* util.c (ruby_qsort): use qsort_s if available, for Microsoft
Visual Studio 2005 (msvcr80.dll) and mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 06e6f5075b..b10970a6d8 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -741,6 +741,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define HAVE_TZNAME 1 #define HAVE_DAYLIGHT 1 #define HAVE_GMTIME_R 1 +!if $(RT_VER) >= 80 +#define HAVE_QSORT_S +!endif #define HAVE_TYPE_NET_LUID 1 #define SETPGRP_VOID 1 #define RSHIFT(x,y) ((x)>>(int)y) |