fix cdecl

This commit is contained in:
Sean Barrett 2014-07-09 23:39:00 -07:00
parent 2da2806d20
commit 68b5ec9392

View File

@ -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 x = * (uint32 *) p;
uint32 y = * (uint32 *) q; uint32 y = * (uint32 *) q;