summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-10 01:43:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-10 01:43:10 +0000
commit5679d0c5c2535815865531424504a8c051cdf475 (patch)
treea316f49e712c1933edd6b4e5279a1788428214fd /util.c
parent73e7cdebe18b1c040e80a8c81447b4d17c72b15e (diff)
there is no such predefined macro. check build before commit!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index a713086..3839074 100644
--- a/util.c
+++ b/util.c
@@ -198,7 +198,7 @@ ruby_strtoul(const char *str, char **endptr, int base)
typedef int (cmpfunc_t)(const void*, const void*, void*);
#if defined HAVE_QSORT_S
-# if defined __MSVCRT__
+# if defined RUBY_MSVCRT_VERSION
# define qsort_r(base, nel, size, arg, cmp) qsort_s(base, nel, size, cmp, arg)
# define cmp_bsd_qsort cmp_ms_qsort
# define HAVE_BSD_QSORT_R 1