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