File indexing completed on 2024-05-18 08:30:30
0001
0002
0003
0004
0005
0006 #ifndef ZCONF_H
0007 #define ZCONF_H
0008
0009 #include "zlib_name_mangling.h"
0010
0011 #if !defined(_WIN32) && defined(__WIN32__)
0012 # define _WIN32
0013 #endif
0014
0015
0016
0017
0018 #ifndef __has_declspec_attribute
0019 # define __has_declspec_attribute(x) 0
0020 #endif
0021
0022 #if defined(ZLIB_CONST) && !defined(z_const)
0023 # define z_const const
0024 #else
0025 # define z_const
0026 #endif
0027
0028
0029 #ifndef MAX_MEM_LEVEL
0030 # define MAX_MEM_LEVEL 9
0031 #endif
0032
0033
0034
0035
0036
0037
0038 #ifndef MIN_WBITS
0039 # define MIN_WBITS 8
0040 #endif
0041 #ifndef MAX_WBITS
0042 # define MAX_WBITS 15
0043 #endif
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061 #ifndef OF
0062 # define OF(args) args
0063 #endif
0064
0065 #ifdef ZLIB_INTERNAL
0066 # define Z_INTERNAL ZLIB_INTERNAL
0067 #endif
0068
0069
0070
0071
0072 #if defined(ZLIB_DLL) && (defined(_WIN32) || (__has_declspec_attribute(dllexport) && __has_declspec_attribute(dllimport)))
0073 # ifdef Z_INTERNAL
0074 # define Z_EXTERN extern __declspec(dllexport)
0075 # else
0076 # define Z_EXTERN extern __declspec(dllimport)
0077 # endif
0078 #endif
0079
0080
0081
0082
0083
0084 #if defined(ZLIB_WINAPI) && defined(_WIN32)
0085 # ifndef WIN32_LEAN_AND_MEAN
0086 # define WIN32_LEAN_AND_MEAN
0087 # endif
0088 # include <windows.h>
0089
0090
0091 # define Z_EXPORT WINAPI
0092 # define Z_EXPORTVA WINAPIV
0093 #endif
0094
0095 #ifndef Z_EXTERN
0096 # define Z_EXTERN extern
0097 #endif
0098 #ifndef Z_EXPORT
0099 # define Z_EXPORT
0100 #endif
0101 #ifndef Z_EXPORTVA
0102 # define Z_EXPORTVA
0103 #endif
0104
0105
0106 #define ZNG_CONDEXPORT Z_INTERNAL
0107
0108
0109
0110 #ifndef ZEXTERN
0111 # define ZEXTERN Z_EXTERN
0112 #endif
0113 #ifndef ZEXPORT
0114 # define ZEXPORT Z_EXPORT
0115 #endif
0116 #ifndef ZEXPORTVA
0117 # define ZEXPORTVA Z_EXPORTVA
0118 #endif
0119
0120
0121 typedef unsigned char Byte;
0122 typedef Byte Bytef;
0123
0124 typedef unsigned int uInt;
0125 typedef unsigned long uLong;
0126
0127 typedef char charf;
0128 typedef int intf;
0129 typedef uInt uIntf;
0130 typedef uLong uLongf;
0131
0132 typedef void const *voidpc;
0133 typedef void *voidpf;
0134 typedef void *voidp;
0135
0136 typedef unsigned int z_crc_t;
0137
0138 #if 1
0139 # define Z_HAVE_UNISTD_H
0140 #endif
0141
0142 #ifdef NEED_PTRDIFF_T
0143 typedef PTRDIFF_TYPE ptrdiff_t;
0144 #endif
0145
0146 #include <sys/types.h> /* for off_t */
0147
0148 #include <stddef.h> /* for wchar_t and NULL */
0149
0150
0151
0152
0153
0154
0155
0156 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
0157 # undef _LARGEFILE64_SOURCE
0158 #endif
0159
0160 #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
0161 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
0162 # ifndef z_off_t
0163 # define z_off_t off_t
0164 # endif
0165 #endif
0166
0167 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
0168 # define Z_LFS64
0169 #endif
0170
0171 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
0172 # define Z_LARGE64
0173 #endif
0174
0175 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
0176 # define Z_WANT64
0177 #endif
0178
0179 #if !defined(SEEK_SET)
0180 # define SEEK_SET 0
0181 # define SEEK_CUR 1
0182 # define SEEK_END 2
0183 #endif
0184
0185 #ifndef z_off_t
0186 # define z_off_t long
0187 #endif
0188
0189 #if !defined(_WIN32) && defined(Z_LARGE64)
0190 # define z_off64_t off64_t
0191 #else
0192 # if defined(__MSYS__)
0193 # define z_off64_t _off64_t
0194 # elif defined(_WIN32) && !defined(__GNUC__)
0195 # define z_off64_t __int64
0196 # else
0197 # define z_off64_t z_off_t
0198 # endif
0199 #endif
0200
0201 typedef size_t z_size_t;
0202
0203 #endif