rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #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 | |||||
8 | typedef ulong uLong; | ||||
9 | typedef uint uInt; | ||||
10 | typedef uint8_t Byte; | ||||
11 | typedef Byte Bytef; | ||||
12 | typedef off_t z_off_t; | ||||
13 | typedef int64_t z_off64_t; | ||||
14 | typedef 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 |