Go to the documentation of this file.
9 #include "zlib_name_mangling.h"
11 #if !defined(_WIN32) && defined(__WIN32__)
18 #ifndef __has_declspec_attribute
19 # define __has_declspec_attribute(x) 0
22 #if defined(ZLIB_CONST) && !defined(z_const)
23 # define z_const const
30 # define MAX_MEM_LEVEL 9
62 # define OF(args) args
66 # define Z_INTERNAL ZLIB_INTERNAL
72 #if defined(ZLIB_DLL) && (defined(_WIN32) || (__has_declspec_attribute(dllexport) && __has_declspec_attribute(dllimport)))
74 # define Z_EXTERN extern __declspec(dllexport)
76 # define Z_EXTERN extern __declspec(dllimport)
84 #if defined(ZLIB_WINAPI) && defined(_WIN32)
85 # ifndef WIN32_LEAN_AND_MEAN
86 # define WIN32_LEAN_AND_MEAN
91 # define Z_EXPORT WINAPI
92 # define Z_EXPORTVA WINAPIV
96 # define Z_EXTERN extern
106 #define ZNG_CONDEXPORT Z_INTERNAL
111 # define ZEXTERN Z_EXTERN
114 # define ZEXPORT Z_EXPORT
117 # define ZEXPORTVA Z_EXPORTVA
139 # define Z_HAVE_UNISTD_H
142 #ifdef NEED_PTRDIFF_T
143 typedef PTRDIFF_TYPE ptrdiff_t;
146 #include <sys/types.h>
156 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
157 # undef _LARGEFILE64_SOURCE
160 #if (defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)) && !defined(_WIN32)
163 # define z_off_t off_t
167 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
171 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
175 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
179 #if !defined(SEEK_SET)
186 # define z_off_t long
189 #if !defined(_WIN32) && defined(Z_LARGE64)
190 # define z_off64_t off64_t
192 # if defined(__MSYS__)
193 # define z_off64_t _off64_t
194 # elif defined(_WIN32) && !defined(__GNUC__)
195 # define z_off64_t __int64
197 # define z_off64_t z_off_t