Go to the documentation of this file.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 alloc_func z_alloc_func
00047 # define free_func z_free_func
00048 # define in_func z_in_func
00049 # define out_func z_out_func
00050 # define Byte z_Byte
00051 # define uInt z_uInt
00052 # define uLong z_uLong
00053 # define Bytef z_Bytef
00054 # define charf z_charf
00055 # define intf z_intf
00056 # define uIntf z_uIntf
00057 # define uLongf z_uLongf
00058 # define voidpf z_voidpf
00059 # define voidp z_voidp
00060 #endif
00061
00062 #if defined(__MSDOS__) && !defined(MSDOS)
00063 # define MSDOS
00064 #endif
00065 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
00066 # define OS2
00067 #endif
00068 #if defined(_WINDOWS) && !defined(WINDOWS)
00069 # define WINDOWS
00070 #endif
00071 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
00072 # ifndef WIN32
00073 # define WIN32
00074 # endif
00075 #endif
00076 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
00077 # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
00078 # ifndef SYS16BIT
00079 # define SYS16BIT
00080 # endif
00081 # endif
00082 #endif
00083
00084
00085
00086
00087
00088 #ifdef SYS16BIT
00089 # define MAXSEG_64K
00090 #endif
00091 #ifdef MSDOS
00092 # define UNALIGNED_OK
00093 #endif
00094
00095 #ifdef __STDC_VERSION__
00096 # ifndef STDC
00097 # define STDC
00098 # endif
00099 # if __STDC_VERSION__ >= 199901L
00100 # ifndef STDC99
00101 # define STDC99
00102 # endif
00103 # endif
00104 #endif
00105 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
00106 # define STDC
00107 #endif
00108 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
00109 # define STDC
00110 #endif
00111 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
00112 # define STDC
00113 #endif
00114 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
00115 # define STDC
00116 #endif
00117
00118 #if defined(__OS400__) && !defined(STDC)
00119 # define STDC
00120 #endif
00121
00122 #ifndef STDC
00123 # ifndef const
00124 # define const
00125 # endif
00126 #endif
00127
00128
00129 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
00130 # define NO_DUMMY_DECL
00131 #endif
00132
00133
00134 #ifndef MAX_MEM_LEVEL
00135 # ifdef MAXSEG_64K
00136 # define MAX_MEM_LEVEL 8
00137 # else
00138 # define MAX_MEM_LEVEL 9
00139 # endif
00140 #endif
00141
00142
00143
00144
00145
00146
00147 #ifndef MAX_WBITS
00148 # define MAX_WBITS 15
00149 #endif
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166 #ifndef OF
00167 # ifdef STDC
00168 # define OF(args) args
00169 # else
00170 # define OF(args) ()
00171 # endif
00172 #endif
00173
00174
00175
00176
00177
00178
00179
00180 #ifdef SYS16BIT
00181 # if defined(M_I86SM) || defined(M_I86MM)
00182
00183 # define SMALL_MEDIUM
00184 # ifdef _MSC_VER
00185 # define FAR _far
00186 # else
00187 # define FAR far
00188 # endif
00189 # endif
00190 # if (defined(__SMALL__) || defined(__MEDIUM__))
00191
00192 # define SMALL_MEDIUM
00193 # ifdef __BORLANDC__
00194 # define FAR _far
00195 # else
00196 # define FAR far
00197 # endif
00198 # endif
00199 #endif
00200
00201 #if defined(WINDOWS) || defined(WIN32)
00202
00203
00204
00205 # ifdef ZLIB_DLL
00206 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
00207 # ifdef ZLIB_INTERNAL
00208 # define ZEXTERN extern __declspec(dllexport)
00209 # else
00210 # define ZEXTERN extern __declspec(dllimport)
00211 # endif
00212 # endif
00213 # endif
00214
00215
00216
00217
00218 # ifdef ZLIB_WINAPI
00219 # ifdef FAR
00220 # undef FAR
00221 # endif
00222 # include <windows.h>
00223
00224
00225 # define ZEXPORT WINAPI
00226 # ifdef WIN32
00227 # define ZEXPORTVA WINAPIV
00228 # else
00229 # define ZEXPORTVA FAR CDECL
00230 # endif
00231 # endif
00232 #endif
00233
00234 #if defined (__BEOS__)
00235 # ifdef ZLIB_DLL
00236 # ifdef ZLIB_INTERNAL
00237 # define ZEXPORT __declspec(dllexport)
00238 # define ZEXPORTVA __declspec(dllexport)
00239 # else
00240 # define ZEXPORT __declspec(dllimport)
00241 # define ZEXPORTVA __declspec(dllimport)
00242 # endif
00243 # endif
00244 #endif
00245
00246 #ifndef ZEXTERN
00247 # define ZEXTERN extern
00248 #endif
00249 #ifndef ZEXPORT
00250 # define ZEXPORT
00251 #endif
00252 #ifndef ZEXPORTVA
00253 # define ZEXPORTVA
00254 #endif
00255
00256 #ifndef FAR
00257 # define FAR
00258 #endif
00259
00260 #if !defined(__MACTYPES__)
00261 typedef unsigned char Byte;
00262 #endif
00263 typedef unsigned int uInt;
00264 typedef unsigned long uLong;
00265
00266 #ifdef SMALL_MEDIUM
00267
00268 # define Bytef Byte FAR
00269 #else
00270 typedef Byte FAR Bytef;
00271 #endif
00272 typedef char FAR charf;
00273 typedef int FAR intf;
00274 typedef uInt FAR uIntf;
00275 typedef uLong FAR uLongf;
00276
00277 #ifdef STDC
00278 typedef void const *voidpc;
00279 typedef void FAR *voidpf;
00280 typedef void *voidp;
00281 #else
00282 typedef Byte const *voidpc;
00283 typedef Byte FAR *voidpf;
00284 typedef Byte *voidp;
00285 #endif
00286
00287 #if 0
00288 # include <sys/types.h>
00289 # include <unistd.h>
00290 # ifdef VMS
00291 # include <unixio.h>
00292 # endif
00293 # define z_off_t off_t
00294 #endif
00295 #ifndef SEEK_SET
00296 # define SEEK_SET 0
00297 # define SEEK_CUR 1
00298 # define SEEK_END 2
00299 #endif
00300 #ifndef z_off_t
00301 # define z_off_t long
00302 #endif
00303
00304 #if defined(__OS400__)
00305 # define NO_vsnprintf
00306 #endif
00307
00308 #if defined(__MVS__)
00309 # define NO_vsnprintf
00310 # ifdef FAR
00311 # undef FAR
00312 # endif
00313 #endif
00314
00315
00316 #if defined(__MVS__)
00317 # pragma map(deflateInit_,"DEIN")
00318 # pragma map(deflateInit2_,"DEIN2")
00319 # pragma map(deflateEnd,"DEEND")
00320 # pragma map(deflateBound,"DEBND")
00321 # pragma map(inflateInit_,"ININ")
00322 # pragma map(inflateInit2_,"ININ2")
00323 # pragma map(inflateEnd,"INEND")
00324 # pragma map(inflateSync,"INSY")
00325 # pragma map(inflateSetDictionary,"INSEDI")
00326 # pragma map(compressBound,"CMBND")
00327 # pragma map(inflate_table,"INTABL")
00328 # pragma map(inflate_fast,"INFA")
00329 # pragma map(inflate_copyright,"INCOPY")
00330 #endif
00331
00332 #endif