| 1 | /* zconf.h -- configuration of the zlib compression library
|
|---|
| 2 | * Copyright (C) 1995-2012 Jean-loup Gailly.
|
|---|
| 3 | * For conditions of distribution and use, see copyright notice in zlib.h
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | /* @(#) $Id$ */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ZCONF_H
|
|---|
| 9 | #define ZCONF_H
|
|---|
| 10 |
|
|---|
| 11 | /*
|
|---|
| 12 | * If you *really* need a unique prefix for all types and library functions,
|
|---|
| 13 | * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
|
|---|
| 14 | * Even better than compiling with -DZ_PREFIX would be to use configure to set
|
|---|
| 15 | * this permanently in zconf.h using "./configure --zprefix".
|
|---|
| 16 | */
|
|---|
| 17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
|
|---|
| 18 | # define Z_PREFIX_SET
|
|---|
| 19 |
|
|---|
| 20 | /* all linked symbols */
|
|---|
| 21 | # define _dist_code z__dist_code
|
|---|
| 22 | # define _length_code z__length_code
|
|---|
| 23 | # define _tr_align z__tr_align
|
|---|
| 24 | # define _tr_flush_block z__tr_flush_block
|
|---|
| 25 | # define _tr_init z__tr_init
|
|---|
| 26 | # define _tr_stored_block z__tr_stored_block
|
|---|
| 27 | # define _tr_tally z__tr_tally
|
|---|
| 28 | # define adler32 z_adler32
|
|---|
| 29 | # define adler32_combine z_adler32_combine
|
|---|
| 30 | # define adler32_combine64 z_adler32_combine64
|
|---|
| 31 | # ifndef Z_SOLO
|
|---|
| 32 | # define compress z_compress
|
|---|
| 33 | # define compress2 z_compress2
|
|---|
| 34 | # define compressBound z_compressBound
|
|---|
| 35 | # endif
|
|---|
| 36 | # define crc32 z_crc32
|
|---|
| 37 | # define crc32_combine z_crc32_combine
|
|---|
| 38 | # define crc32_combine64 z_crc32_combine64
|
|---|
| 39 | # define deflate z_deflate
|
|---|
| 40 | # define deflateBound z_deflateBound
|
|---|
| 41 | # define deflateCopy z_deflateCopy
|
|---|
| 42 | # define deflateEnd z_deflateEnd
|
|---|
| 43 | # define deflateInit2_ z_deflateInit2_
|
|---|
| 44 | # define deflateInit_ z_deflateInit_
|
|---|
| 45 | # define deflateParams z_deflateParams
|
|---|
| 46 | # define deflatePending z_deflatePending
|
|---|
| 47 | # define deflatePrime z_deflatePrime
|
|---|
| 48 | # define deflateReset z_deflateReset
|
|---|
| 49 | # define deflateResetKeep z_deflateResetKeep
|
|---|
| 50 | # define deflateSetDictionary z_deflateSetDictionary
|
|---|
| 51 | # define deflateSetHeader z_deflateSetHeader
|
|---|
| 52 | # define deflateTune z_deflateTune
|
|---|
| 53 | # define deflate_copyright z_deflate_copyright
|
|---|
| 54 | # define get_crc_table z_get_crc_table
|
|---|
| 55 | # ifndef Z_SOLO
|
|---|
| 56 | # define gz_error z_gz_error
|
|---|
| 57 | # define gz_intmax z_gz_intmax
|
|---|
| 58 | # define gz_strwinerror z_gz_strwinerror
|
|---|
| 59 | # define gzbuffer z_gzbuffer
|
|---|
| 60 | # define gzclearerr z_gzclearerr
|
|---|
| 61 | # define gzclose z_gzclose
|
|---|
| 62 | # define gzclose_r z_gzclose_r
|
|---|
| 63 | # define gzclose_w z_gzclose_w
|
|---|
| 64 | # define gzdirect z_gzdirect
|
|---|
| 65 | # define gzdopen z_gzdopen
|
|---|
| 66 | # define gzeof z_gzeof
|
|---|
| 67 | # define gzerror z_gzerror
|
|---|
| 68 | # define gzflush z_gzflush
|
|---|
| 69 | # define gzgetc z_gzgetc
|
|---|
| 70 | # define gzgetc_ z_gzgetc_
|
|---|
| 71 | # define gzgets z_gzgets
|
|---|
| 72 | # define gzoffset z_gzoffset
|
|---|
| 73 | # define gzoffset64 z_gzoffset64
|
|---|
| 74 | # define gzopen z_gzopen
|
|---|
| 75 | # define gzopen64 z_gzopen64
|
|---|
| 76 | # ifdef _WIN32
|
|---|
| 77 | # define gzopen_w z_gzopen_w
|
|---|
| 78 | # endif
|
|---|
| 79 | # define gzprintf z_gzprintf
|
|---|
| 80 | # define gzputc z_gzputc
|
|---|
| 81 | # define gzputs z_gzputs
|
|---|
| 82 | # define gzread z_gzread
|
|---|
| 83 | # define gzrewind z_gzrewind
|
|---|
| 84 | # define gzseek z_gzseek
|
|---|
| 85 | # define gzseek64 z_gzseek64
|
|---|
| 86 | # define gzsetparams z_gzsetparams
|
|---|
| 87 | # define gztell z_gztell
|
|---|
| 88 | # define gztell64 z_gztell64
|
|---|
| 89 | # define gzungetc z_gzungetc
|
|---|
| 90 | # define gzwrite z_gzwrite
|
|---|
| 91 | # endif
|
|---|
| 92 | # define inflate z_inflate
|
|---|
| 93 | # define inflateBack z_inflateBack
|
|---|
| 94 | # define inflateBackEnd z_inflateBackEnd
|
|---|
| 95 | # define inflateBackInit_ z_inflateBackInit_
|
|---|
| 96 | # define inflateCopy z_inflateCopy
|
|---|
| 97 | # define inflateEnd z_inflateEnd
|
|---|
| 98 | # define inflateGetHeader z_inflateGetHeader
|
|---|
| 99 | # define inflateInit2_ z_inflateInit2_
|
|---|
| 100 | # define inflateInit_ z_inflateInit_
|
|---|
| 101 | # define inflateMark z_inflateMark
|
|---|
| 102 | # define inflatePrime z_inflatePrime
|
|---|
| 103 | # define inflateReset z_inflateReset
|
|---|
| 104 | # define inflateReset2 z_inflateReset2
|
|---|
| 105 | # define inflateSetDictionary z_inflateSetDictionary
|
|---|
| 106 | # define inflateSync z_inflateSync
|
|---|
| 107 | # define inflateSyncPoint z_inflateSyncPoint
|
|---|
| 108 | # define inflateUndermine z_inflateUndermine
|
|---|
| 109 | # define inflateResetKeep z_inflateResetKeep
|
|---|
| 110 | # define inflate_copyright z_inflate_copyright
|
|---|
| 111 | # define inflate_fast z_inflate_fast
|
|---|
| 112 | # define inflate_table z_inflate_table
|
|---|
| 113 | # ifndef Z_SOLO
|
|---|
| 114 | # define uncompress z_uncompress
|
|---|
| 115 | # endif
|
|---|
| 116 | # define zError z_zError
|
|---|
| 117 | # ifndef Z_SOLO
|
|---|
| 118 | # define zcalloc z_zcalloc
|
|---|
| 119 | # define zcfree z_zcfree
|
|---|
| 120 | # endif
|
|---|
| 121 | # define zlibCompileFlags z_zlibCompileFlags
|
|---|
| 122 | # define zlibVersion z_zlibVersion
|
|---|
| 123 |
|
|---|
| 124 | /* all zlib typedefs in zlib.h and zconf.h */
|
|---|
| 125 | # define Byte z_Byte
|
|---|
| 126 | # define Bytef z_Bytef
|
|---|
| 127 | # define alloc_func z_alloc_func
|
|---|
| 128 | # define charf z_charf
|
|---|
| 129 | # define free_func z_free_func
|
|---|
| 130 | # ifndef Z_SOLO
|
|---|
| 131 | # define gzFile z_gzFile
|
|---|
| 132 | # endif
|
|---|
| 133 | # define gz_header z_gz_header
|
|---|
| 134 | # define gz_headerp z_gz_headerp
|
|---|
| 135 | # define in_func z_in_func
|
|---|
| 136 | # define intf z_intf
|
|---|
| 137 | # define out_func z_out_func
|
|---|
| 138 | # define uInt z_uInt
|
|---|
| 139 | # define uIntf z_uIntf
|
|---|
| 140 | # define uLong z_uLong
|
|---|
| 141 | # define uLongf z_uLongf
|
|---|
| 142 | # define voidp z_voidp
|
|---|
| 143 | # define voidpc z_voidpc
|
|---|
| 144 | # define voidpf z_voidpf
|
|---|
| 145 |
|
|---|
| 146 | /* all zlib structs in zlib.h and zconf.h */
|
|---|
| 147 | # define gz_header_s z_gz_header_s
|
|---|
| 148 | # define internal_state z_internal_state
|
|---|
| 149 |
|
|---|
| 150 | #endif
|
|---|
| 151 |
|
|---|
| 152 | #if defined(__MSDOS__) && !defined(MSDOS)
|
|---|
| 153 | # define MSDOS
|
|---|
| 154 | #endif
|
|---|
| 155 | #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
|
|---|
| 156 | # define OS2
|
|---|
| 157 | #endif
|
|---|
| 158 | #if defined(_WINDOWS) && !defined(WINDOWS)
|
|---|
| 159 | # define WINDOWS
|
|---|
| 160 | #endif
|
|---|
| 161 | #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
|
|---|
| 162 | # ifndef WIN32
|
|---|
| 163 | # define WIN32
|
|---|
| 164 | # endif
|
|---|
| 165 | #endif
|
|---|
| 166 | #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
|
|---|
| 167 | # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
|
|---|
| 168 | # ifndef SYS16BIT
|
|---|
| 169 | # define SYS16BIT
|
|---|
| 170 | # endif
|
|---|
| 171 | # endif
|
|---|
| 172 | #endif
|
|---|
| 173 |
|
|---|
| 174 | /*
|
|---|
| 175 | * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
|
|---|
| 176 | * than 64k bytes at a time (needed on systems with 16-bit int).
|
|---|
| 177 | */
|
|---|
| 178 | #ifdef SYS16BIT
|
|---|
| 179 | # define MAXSEG_64K
|
|---|
| 180 | #endif
|
|---|
| 181 | #ifdef MSDOS
|
|---|
| 182 | # define UNALIGNED_OK
|
|---|
| 183 | #endif
|
|---|
| 184 |
|
|---|
| 185 | #ifdef __STDC_VERSION__
|
|---|
| 186 | # ifndef STDC
|
|---|
| 187 | # define STDC
|
|---|
| 188 | # endif
|
|---|
| 189 | # if __STDC_VERSION__ >= 199901L
|
|---|
| 190 | # ifndef STDC99
|
|---|
| 191 | # define STDC99
|
|---|
| 192 | # endif
|
|---|
| 193 | # endif
|
|---|
|
|---|