00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ZCONF_H
00009 #define ZCONF_H
00010
00011
00012
00013
00014
00015 #ifdef Z_PREFIX
00016 # define deflateInit_ z_deflateInit_
00017 # define deflate z_deflate
00018 # define deflateEnd z_deflateEnd
00019 # define inflateInit_ z_inflateInit_
00020 # define inflate z_inflate
00021 # define inflateEnd z_inflateEnd
00022 # define deflateInit2_ z_deflateInit2_
00023 # define deflateSetDictionary z_deflateSetDictionary
00024 # define deflateCopy z_deflateCopy
00025 # define deflateReset z_deflateReset
00026 # define deflateParams z_deflateParams
00027 # define deflateBound z_deflateBound
00028 # define deflatePrime z_deflatePrime
00029 # define inflateInit2_ z_inflateInit2_
00030 # define inflateSetDictionary z_inflateSetDictionary
00031 # define inflateSync z_inflateSync
00032 # define inflateSyncPoint z_inflateSyncPoint
00033 # define inflateCopy z_inflateCopy
00034 # define inflateReset z_inflateReset
00035 # define inflateBack z_inflateBack
00036 # define inflateBackEnd z_inflateBackEnd
00037 # define compress z_compress
00038 # define compress2 z_compress2
00039 # define compressBound z_compressBound
00040 # define uncompress z_uncompress
00041 # define adler32 z_adler32
00042 # define crc32 z_crc32
00043 # define get_crc_table z_get_crc_table
00044 # define zError z_zError
00045
00046 # define Byte z_Byte
00047 # define uInt z_uInt
00048 # define uLong z_uLong
00049 # define Bytef z_Bytef
00050 # define charf z_charf
00051 # define intf z_intf
00052 # define uIntf z_uIntf
00053 # define uLongf z_uLongf
00054 # define voidpf z_voidpf
00055 # define voidp z_voidp
00056 #endif
00057
00058 #if defined(__MSDOS__) && !defined(MSDOS)
00059 # define MSDOS
00060 #endif
00061 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
00062 # define OS2
00063 #endif
00064 #if defined(_WINDOWS) && !defined(WINDOWS)
00065 # define WINDOWS
00066 #endif
00067 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
00068 # define WIN32
00069 #endif
00070 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
00071 # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
00072 # ifndef SYS16BIT
00073 # define SYS16BIT
00074 # endif
00075 # endif
00076 #endif
00077
00078
00079
00080
00081
00082 #ifdef SYS16BIT
00083 # define MAXSEG_64K
00084 #endif
00085 #ifdef MSDOS
00086 # define UNALIGNED_OK
00087 #endif
00088
00089 #ifdef __STDC_VERSION__
00090 # ifndef STDC
00091 # define STDC
00092 # endif
00093 # if __STDC_VERSION__ >= 199901L
00094 # ifndef STDC99
00095 # define STDC99
00096 # endif
00097 # endif
00098 #endif
00099 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
00100 # define STDC
00101 #endif
00102 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
00103 # define STDC
00104 #endif
00105 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
00106 # define STDC
00107 #endif
00108 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
00109 # define STDC
00110 #endif
00111
00112 #if defined(__OS400__) && !defined(STDC)
00113 # define STDC
00114 #endif
00115
00116 #ifndef STDC
00117 # ifndef const
00118 # define const
00119 # endif
00120 #endif
00121
00122
00123 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
00124 # define NO_DUMMY_DECL
00125 #endif
00126
00127
00128 #ifndef MAX_MEM_LEVEL
00129 # ifdef MAXSEG_64K
00130 # define MAX_MEM_LEVEL 8
00131 # else
00132 # define MAX_MEM_LEVEL 9
00133 # endif
00134 #endif
00135
00136
00137
00138
00139
00140
00141 #ifndef MAX_WBITS
00142 # define MAX_WBITS 15
00143 #endif
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160 #ifndef OF
00161 # ifdef STDC
00162 # define OF(args) args
00163 # else
00164 # define OF(args) ()
00165 # endif
00166 #endif
00167
00168
00169
00170
00171
00172
00173
00174 #ifdef SYS16BIT
00175 # if defined(M_I86SM) || defined(M_I86MM)
00176
00177 # define SMALL_MEDIUM
00178 # ifdef _MSC_VER
00179 # define FAR _far
00180 # else
00181 # define FAR far
00182 # endif
00183 # endif
00184 # if (defined(__SMALL__) || defined(__MEDIUM__))
00185
00186 # define SMALL_MEDIUM
00187 # ifdef __BORLANDC__
00188 # define FAR _far
00189 # else
00190 # define FAR far
00191 # endif
00192 # endif
00193 #endif
00194
00195 #if defined(WINDOWS) || defined(WIN32)
00196
00197
00198
00199 # ifdef ZLIB_DLL
00200 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
00201 # ifdef ZLIB_INTERNAL
00202 # define ZEXTERN extern __declspec(dllexport)
00203 # else
00204 # define ZEXTERN extern __declspec(dllimport)
00205 # endif
00206 # endif
00207 # endif
00208
00209
00210
00211
00212 # ifdef ZLIB_WINAPI
00213 # ifdef FAR
00214 # undef FAR
00215 # endif
00216 # include <windows.h>
00217
00218
00219 # define ZEXPORT WINAPI
00220 # ifdef WIN32
00221 # define ZEXPORTVA WINAPIV
00222 # else
00223 # define ZEXPORTVA FAR CDECL
00224 # endif
00225 # endif
00226 #endif
00227
00228 #if defined (__BEOS__)
00229 # ifdef ZLIB_DLL
00230 # ifdef ZLIB_INTERNAL
00231 # define ZEXPORT __declspec(dllexport)
00232 # define ZEXPORTVA __declspec(dllexport)
00233 # else
00234 # define ZEXPORT __declspec(dllimport)
00235 # define ZEXPORTVA __declspec(dllimport)
00236 # endif
00237 # endif
00238 #endif
00239
00240 #ifndef ZEXTERN
00241 # define ZEXTERN extern
00242 #endif
00243 #ifndef ZEXPORT
00244 # define ZEXPORT
00245 #endif
00246 #ifndef ZEXPORTVA
00247 # define ZEXPORTVA
00248 #endif
00249
00250 #ifndef FAR
00251 # define FAR
00252 #endif
00253
00254 #if !defined(__MACTYPES__)
00255 typedef unsigned char Byte;
00256 #endif
00257 typedef unsigned int uInt;
00258 typedef unsigned long uLong;
00259
00260 #ifdef SMALL_MEDIUM
00261
00262 # define Bytef Byte FAR
00263 #else
00264 typedef Byte FAR Bytef;
00265 #endif
00266 typedef char FAR charf;
00267 typedef int FAR intf;
00268 typedef uInt FAR uIntf;
00269 typedef uLong FAR uLongf;
00270
00271 #ifdef STDC
00272 typedef void const *voidpc;
00273 typedef void FAR *voidpf;
00274 typedef void *voidp;
00275 #else
00276 typedef Byte const *voidpc;
00277 typedef Byte FAR *voidpf;
00278 typedef Byte *voidp;
00279 #endif
00280
00281 #if 0
00282 # include <sys/types.h>
00283 # include <unistd.h>
00284 # ifdef VMS
00285 # include <unixio.h>
00286 # endif
00287 # define z_off_t off_t
00288 #endif
00289 #ifndef SEEK_SET
00290 # define SEEK_SET 0
00291 # define SEEK_CUR 1
00292 # define SEEK_END 2
00293 #endif
00294 #ifndef z_off_t
00295 # define z_off_t long
00296 #endif
00297
00298 #if defined(__OS400__)
00299 # define NO_vsnprintf
00300 #endif
00301
00302 #if defined(__MVS__)
00303 # define NO_vsnprintf
00304 # ifdef FAR
00305 # undef FAR
00306 # endif
00307 #endif
00308
00309
00310 #if defined(__MVS__)
00311 # pragma map(deflateInit_,"DEIN")
00312 # pragma map(deflateInit2_,"DEIN2")
00313 # pragma map(deflateEnd,"DEEND")
00314 # pragma map(deflateBound,"DEBND")
00315 # pragma map(inflateInit_,"ININ")
00316 # pragma map(inflateInit2_,"ININ2")
00317 # pragma map(inflateEnd,"INEND")
00318 # pragma map(inflateSync,"INSY")
00319 # pragma map(inflateSetDictionary,"INSEDI")
00320 # pragma map(compressBound,"CMBND")
00321 # pragma map(inflate_table,"INTABL")
00322 # pragma map(inflate_fast,"INFA")
00323 # pragma map(inflate_copyright,"INCOPY")
00324 #endif
00325
00326 #endif