cmd: Explicitly mark qsort() callback funtions cdecl.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-06 03:40:25 -05:00
parent b479382737
commit 7f0272a59a
2 changed files with 2 additions and 2 deletions

View File

@ -3562,7 +3562,7 @@ void WCMD_setshow_date (void) {
* Note: Native displays 'fred' before 'fred ', so need to only compare up to
* the equals sign.
*/
static int WCMD_compare( const void *a, const void *b )
static int __cdecl WCMD_compare( const void *a, const void *b )
{
int r;
const WCHAR * const *str_a = a, * const *str_b = b;

View File

@ -101,7 +101,7 @@ static WCHAR * WCMD_filesize64 (ULONGLONG n) {
*
* Sort based on the /O options supplied on the command line
*/
static int WCMD_dir_sort (const void *a, const void *b)
static int __cdecl WCMD_dir_sort (const void *a, const void *b)
{
const WIN32_FIND_DATAW *filea = (const WIN32_FIND_DATAW *)a;
const WIN32_FIND_DATAW *fileb = (const WIN32_FIND_DATAW *)b;