1#ifndef _ZBUILD_H
2#define _ZBUILD_H
3
4/* This has to be first include that defines any types */
5#if defined(_MSC_VER)
6# if defined(_WIN64)
7 typedef __int64 ssize_t;
8# else
9 typedef long ssize_t;
10# endif
11#endif
12
13#if defined(ZLIB_COMPAT)
14# define PREFIX(x) x
15# define PREFIX2(x) ZLIB_ ## x
16# define PREFIX3(x) z_ ## x
17# define PREFIX4(x) x ## 64
18# define zVersion zlibVersion
19# define z_size_t unsigned long
20#else
21# define PREFIX(x) zng_ ## x
22# define PREFIX2(x) ZLIBNG_ ## x
23# define PREFIX3(x) zng_ ## x
24# define PREFIX4(x) zng_ ## x
25# define zVersion zlibng_version
26# define z_size_t size_t
27#endif
28
29/* Minimum of a and b. */
30#define MIN(a, b) ((a) > (b) ? (b) : (a))
31/* Maximum of a and b. */
32#define MAX(a, b) ((a) < (b) ? (b) : (a))
33/* Ignore unused variable warning */
34#define Z_UNUSED(var) (void)(var)
35
36#endif
37