Skip to content

Commit

Permalink
Dont use qsort_s
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Dec 7, 2018
1 parent 9a4fdfe commit 0a1a910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/qsort_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a1a910

Please sign in to comment.