Added explicit settings of calling conventions in pointer-to-function declarations in system and library headers.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/*
|
||||
** qsort.c
|
||||
**
|
||||
** Ullrich von Bassewitz, 09.12.1998
|
||||
** 1998.12.09, Ullrich von Bassewitz
|
||||
** 2015-06-21, Greg King
|
||||
*/
|
||||
|
||||
|
||||
@@ -12,7 +13,7 @@
|
||||
|
||||
static void QuickSort (register unsigned char* Base, int Lo, int Hi,
|
||||
register size_t Size,
|
||||
int (*Compare)(const void*, const void*))
|
||||
int __fastcall__ (* Compare) (const void*, const void*))
|
||||
/* Internal recursive function. Works with ints, but this shouldn't be
|
||||
** a problem.
|
||||
*/
|
||||
@@ -52,7 +53,7 @@ static void QuickSort (register unsigned char* Base, int Lo, int Hi,
|
||||
|
||||
|
||||
void __fastcall__ qsort (void* base, size_t nmemb, size_t size,
|
||||
int (*compare)(const void*, const void*))
|
||||
int __fastcall__ (* compare) (const void*, const void*))
|
||||
/* Quicksort implementation */
|
||||
{
|
||||
if (nmemb > 1) {
|
||||
|
||||
Reference in New Issue
Block a user