blob: 8fe715b38268cb9a09b2ff7b591a08906ca9b392 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef __ZUTIL_H
2#define __ZUTIL_H
3
4/* necessary stuff to transplant crc32 and adler32 from zlib */
5#include <inttypes.h>
6#include <sys/types.h>
7
8typedef ulong uLong;
9typedef uint uInt;
10typedef uint8_t Byte;
11typedef Byte Bytef;
12typedef off_t z_off_t;
13typedef int64_t z_off64_t;
14typedef unsigned long z_crc_t;
15
16//#define Z_U4 uint32_t
17
18
19#define Z_NULL NULL
20#define OF(args) args
21#define local static
22#define ZEXPORT
23#define FAR
24
25#endif
26