From be4b1c1e2c55fb812d6ad2b9d88c5357e06a9f9e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 May 2016 08:18:56 +0000 Subject: 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 --- win32/Makefile.sub | 3 +++ 1 file changed, 3 insertions(+) (limited to 'win32/Makefile.sub') 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) -- cgit v1.2.3