From 72f06c29966ff711a7b9fd21ab602c32cea2f060 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Mon, 7 Jul 2014 23:58:50 +0200 Subject: [PATCH] Explicit CDECL needed QSORT only takes CDECL, but project settings can define different defaults for calling conventions. --- stb_vorbis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 03f7728..f0cebad 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -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 y = * (uint32 *) q; @@ -1240,7 +1240,7 @@ typedef struct uint16 x,y; } 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 *b = (Point *) q;