00001
00002
00003
00004
00005
00006 #ifndef _ZCONF_H
00007 #define _ZCONF_H
00008
00009
00010
00011
00012
00013 #ifdef Z_PREFIX
00014 # define deflateInit_ z_deflateInit_
00015 # define deflate z_deflate
00016 # define deflateEnd z_deflateEnd
00017 # define inflateInit_ z_inflateInit_
00018 # define inflate z_inflate
00019 # define inflateEnd z_inflateEnd
00020 # define deflateInit2_ z_deflateInit2_
00021 # define deflateSetDictionary z_deflateSetDictionary
00022 # define deflateCopy z_deflateCopy
00023 # define deflateReset z_deflateReset
00024 # define deflateParams z_deflateParams
00025 # define inflateInit2_ z_inflateInit2_
00026 # define inflateSetDictionary z_inflateSetDictionary
00027 # define inflateSync z_inflateSync
00028 # define inflateSyncPoint z_inflateSyncPoint
00029 # define inflateReset z_inflateReset
00030 # define compress z_compress
00031 # define compress2 z_compress2
00032 # define uncompress z_uncompress
00033 # define adler32 z_adler32
00034 # define crc32 z_crc32
00035 # define get_crc_table z_get_crc_table
00036
00037 # define Byte z_Byte
00038 # define uInt z_uInt
00039 # define uLong z_uLong
00040 # define Bytef z_Bytef
00041 # define charf z_charf
00042 # define intf z_intf
00043 # define uIntf z_uIntf
00044 # define uLongf z_uLongf
00045 # define voidpf z_voidpf
00046 # define voidp z_voidp
00047 #endif
00048
00049 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
00050 # define WIN32
00051 #endif
00052 #if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
00053 # ifndef __32BIT__
00054 # define __32BIT__
00055 # endif
00056 #endif
00057 #if defined(__MSDOS__) && !defined(MSDOS)
00058 # define MSDOS
00059 #endif
00060
00061
00062
00063
00064
00065 #if defined(MSDOS) && !defined(__32BIT__)
00066 # define MAXSEG_64K
00067 #endif
00068 #ifdef MSDOS
00069 # define UNALIGNED_OK
00070 #endif
00071
00072 #if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32)) && !defined(STDC)
00073 # define STDC
00074 #endif
00075 #if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
00076 # ifndef STDC
00077 # define STDC
00078 # endif
00079 #endif
00080
00081 #ifndef STDC
00082 # ifndef const
00083 # define const
00084 # endif
00085 #endif
00086
00087
00088 #if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
00089 # define NO_DUMMY_DECL
00090 #endif
00091
00092
00093 #if defined(__BORLANDC__)
00094 # define NEED_DUMMY_RETURN
00095 #endif
00096
00097
00098
00099 #ifndef MAX_MEM_LEVEL
00100 # ifdef MAXSEG_64K
00101 # define MAX_MEM_LEVEL 8
00102 # else
00103 # define MAX_MEM_LEVEL 9
00104 # endif
00105 #endif
00106
00107
00108
00109
00110
00111
00112 #ifndef MAX_WBITS
00113 # define MAX_WBITS 15
00114 #endif
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131 #ifndef OF
00132 # ifdef STDC
00133 # define OF(args) args
00134 # else
00135 # define OF(args) ()
00136 # endif
00137 #endif
00138
00139
00140
00141
00142
00143
00144
00145 #if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
00146
00147 # define SMALL_MEDIUM
00148 # ifdef _MSC_VER
00149 # define FAR __far
00150 # else
00151 # define FAR far
00152 # endif
00153 #endif
00154 #if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
00155 # ifndef __32BIT__
00156 # define SMALL_MEDIUM
00157 # define FAR __far
00158 # endif
00159 #endif
00160
00161
00162 #if (defined(_WINDOWS) || defined(WINDOWS)) && defined(ZLIB_DLL)
00163 # ifdef FAR
00164 # undef FAR
00165 # endif
00166 # include <windows.h>
00167 # define ZEXPORT WINAPI
00168 # ifdef WIN32
00169 # define ZEXPORTVA WINAPIV
00170 # else
00171 # define ZEXPORTVA FAR _cdecl _export
00172 # endif
00173 #else
00174 # if defined (__BORLANDC__) && defined (_Windows) && defined (__DLL__)
00175 # define ZEXPORT _export
00176 # define ZEXPORTVA _export
00177 # else
00178 # define ZEXPORT
00179 # define ZEXPORTVA
00180 # endif
00181 #endif
00182
00183 #ifndef FAR
00184 # define FAR
00185 #endif
00186
00187 typedef unsigned char Byte;
00188 typedef unsigned int uInt;
00189 typedef unsigned long uLong;
00190
00191 #if defined(__BORLANDC__) && defined(SMALL_MEDIUM)
00192
00193 # define Bytef Byte FAR
00194 #else
00195 typedef Byte FAR Bytef;
00196 #endif
00197 typedef char FAR charf;
00198 typedef int FAR intf;
00199 typedef uInt FAR uIntf;
00200 typedef uLong FAR uLongf;
00201
00202 #ifdef STDC
00203 typedef void FAR *voidpf;
00204 typedef void *voidp;
00205 #else
00206 typedef Byte FAR *voidpf;
00207 typedef Byte *voidp;
00208 #endif
00209
00210 #ifdef HAVE_UNISTD_H
00211 # include <sys/types.h>
00212 # include <unistd.h>
00213 # define z_off_t off_t
00214 #endif
00215 #ifndef SEEK_SET
00216 # define SEEK_SET 0
00217 # define SEEK_CUR 1
00218 #endif
00219 #ifndef z_off_t
00220 # define z_off_t long
00221 #endif
00222
00223
00224 #if defined(__MVS__)
00225 # pragma map(deflateInit_,"DEIN")
00226 # pragma map(deflateInit2_,"DEIN2")
00227 # pragma map(deflateEnd,"DEEND")
00228 # pragma map(inflateInit_,"ININ")
00229 # pragma map(inflateInit2_,"ININ2")
00230 # pragma map(inflateEnd,"INEND")
00231 # pragma map(inflateSync,"INSY")
00232 # pragma map(inflateSetDictionary,"INSEDI")
00233 # pragma map(inflate_blocks,"INBL")
00234 # pragma map(inflate_blocks_new,"INBLNE")
00235 # pragma map(inflate_blocks_free,"INBLFR")
00236 # pragma map(inflate_blocks_reset,"INBLRE")
00237 # pragma map(inflate_codes_free,"INCOFR")
00238 # pragma map(inflate_codes,"INCO")
00239 # pragma map(inflate_fast,"INFA")
00240 # pragma map(inflate_flush,"INFLU")
00241 # pragma map(inflate_mask,"INMA")
00242 # pragma map(inflate_set_dictionary,"INSEDI2")
00243 # pragma map(inflate_copyright,"INCOPY")
00244 # pragma map(inflate_trees_bits,"INTRBI")
00245 # pragma map(inflate_trees_dynamic,"INTRDY")
00246 # pragma map(inflate_trees_fixed,"INTRFI")
00247 # pragma map(inflate_trees_free,"INTRFR")
00248 #endif
00249
00250 #endif