From 0a1a910e095111dc379ff536b9bd98d0db7b9f3b Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 7 Dec 2018 11:05:10 +0100 Subject: [PATCH] Dont use qsort_s --- src/util/qsort_r.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/qsort_r.c b/src/util/qsort_r.c index aa70a6d6..18907e11 100644 --- a/src/util/qsort_r.c +++ b/src/util/qsort_r.c @@ -184,8 +184,8 @@ void nlopt_qsort_r(void *base_, size_t nmemb, size_t size, void *thunk, cmp_t* c wrapper.compar = compar; wrapper.thunk = thunk; qsort_r(base_, nmemb, size, qsort_cmp_wrap, &wrapper); -#elif defined(_WIN32) - qsort_s(base_, nmemb, size, compar, thunk); +/*#elif defined(_WIN32) + qsort_s(base_, nmemb, size, compar, thunk);*/ #else qsort_r_fallback(base_, nmemb, size, thunk, compar); #endif