浏览代码

closes https://github.com/assimp/assimp/issues/1655: add typedef for android NDK.

Kim Kulling 7 年之前
父节点
当前提交
6a9df80f68
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      contrib/zlib/zlib.h

+ 3 - 0
contrib/zlib/zlib.h

@@ -77,6 +77,9 @@ extern "C" {
   the consistency of the compressed data, so the library should never crash
   the consistency of the compressed data, so the library should never crash
   even in the case of corrupted input.
   even in the case of corrupted input.
 */
 */
+#ifdef __ANDROID__     
+using zcrc_t = unsigned_long; 
+#endif
 
 
 typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
 typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
 typedef void   (*free_func)  OF((voidpf opaque, voidpf address));
 typedef void   (*free_func)  OF((voidpf opaque, voidpf address));