diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-09 07:49:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-09 07:49:04 +0000 |
commit | 8e9a8c043ef5b16a2f13999bd2c5d59d61dd00d1 (patch) | |
tree | e50a9121b5d647750a3797c311f62eb4c3401123 /regparse.c | |
parent | 7671126dfb38255d7dbb74d3a5e40520ca94158b (diff) | |
download | ruby-8e9a8c043ef5b16a2f13999bd2c5d59d61dd00d1.tar.gz |
util.c: qsort_s in C11
* configure.ac: macro for C11 to use qsort_s.
* util.c (ruby_qsort): fix for C11 qsort_s. the comparison function
for MSVCRT qsort_s is compatible with BSD qsort_r, but not with C11
qsort_s, in spite of its name.
note that mingw defines __STDC_VERSION__ but uses qsort_s in MSVCRT,
so the MSVCRT block needs to preced the C11 block.
[ruby-core:88899] [Bug #15091]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
0 files changed, 0 insertions, 0 deletions