Explicit CDECL needed

QSORT only takes CDECL, but project settings can define different defaults for calling conventions.
This commit is contained in:
Gargaj 2014-07-07 23:58:50 +02:00
parent e454b82a78
commit 72f06c2996

View File

@ -1084,7 +1084,7 @@ static void compute_accelerated_huffman(Codebook *c)
} }
} }
static int uint32_compare(const void *p, const void *q) static int __cdecl uint32_compare(const void *p, const void *q)
{ {
uint32 x = * (uint32 *) p; uint32 x = * (uint32 *) p;
uint32 y = * (uint32 *) q; uint32 y = * (uint32 *) q;
@ -1240,7 +1240,7 @@ typedef struct
uint16 x,y; uint16 x,y;
} Point; } Point;
int point_compare(const void *p, const void *q) int __cdecl point_compare(const void *p, const void *q)
{ {
Point *a = (Point *) p; Point *a = (Point *) p;
Point *b = (Point *) q; Point *b = (Point *) q;