From 68b5ec9392cd38b9ec5796965d0b442e4407e3a0 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Wed, 9 Jul 2014 23:39:00 -0700 Subject: [PATCH] fix cdecl --- stb_vorbis.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index a15a283..f09f87a 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -1085,7 +1085,11 @@ static void compute_accelerated_huffman(Codebook *c) } } -static int __cdecl uint32_compare(const void *p, const void *q) +static int +#ifdef _MSC_VER // might also be needed on non-msvc Windows builds, so should be #ifdef WINDOWS? +__cdecl +#endif +uint32_compare(const void *p, const void *q) { uint32 x = * (uint32 *) p; uint32 y = * (uint32 *) q;