On Tue, 23 Jul 2019, Alexander Monakov wrote: > On Tue, 23 Jul 2019, Richard Biener wrote: > > > > Can you let me handle sort.cc changes once there's agreement > > > which way to go? > > > > Sure - feel free to give option 3 a shot. I'm just worried > > about the system.h redirect which would be then disabled for C? > > *nod* My preference would be to poison qsort for C, but there's also > the possibility to employ option 1 for C while using option 3 for C++.
Works for me. For C we can use a static redirect in the header as well and do the usual casting. Or the poisoning (not sure if that works). We probably also want to redirect qsort_r from the system then. Richard.