浏览代码

fix cdecl

Sean Barrett 11 年之前
父节点
当前提交
68b5ec9392
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      stb_vorbis.c

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