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