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 | # include <windows.h> |
7 | typedef SSIZE_T ssize_t; |
8 | # define __thread __declspec(thread) |
9 | #endif |
10 | |
11 | #if defined(ZLIB_COMPAT) |
12 | # define PREFIX(x) x |
13 | # define PREFIX2(x) ZLIB_ ## x |
14 | # define PREFIX3(x) z_ ## x |
15 | # define zVersion zlibVersion |
16 | # define z_size_t size_t |
17 | #else |
18 | # define PREFIX(x) zng_ ## x |
19 | # define PREFIX2(x) ZLIBNG_ ## x |
20 | # define PREFIX3(x) zng_ ## x |
21 | # define zVersion zlibng_version |
22 | # define z_size_t size_t |
23 | #endif |
24 | |
25 | #endif |
26 | |