#39251: qsort_s has arguments from MSVC, not from C11 standard or GCC Open Date: 2019-05-23 21:08 Last Update: 2019-05-23 21:08 URL for this Ticket: https://osdn.net//projects/mingw/ticket/39251 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39251 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2019-05-23 21:08 Updated by: david-cortes * New Ticket "qsort_s has arguments from MSVC, not from C11 standard or GCC" created --------------------------------------------------------------------- Ticket Status: Reporter: david-cortes Owner: (None) Type: Issues Status: Open Priority: 5 - Medium MileStone: (None) Component: (None) Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: The C11 standard introduced a sorting function qsort_s, which accepts an extra argument as data that is passed to the sorting function. In GCC and standard C11, the comparison function that is passed to qsort_s has this new data argument as the last argument, while MSVC has it as the first argument. Mingw seems to have taken the MSVC function declaration instead of the standard one. -- Ticket information of MinGW - Minimalist GNU for Windows project MinGW - Minimalist GNU for Windows Project is hosted on OSDN Project URL: https://osdn.net/projects/mingw/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/mingw/ticket/39251 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39251