annotate src/zlib-1.2.8/zconf.h @ 43:5ea0608b923f

Current zlib source
author Chris Cannam
date Tue, 18 Oct 2016 14:33:52 +0100
parents
children
rev   line source
Chris@43 1 /* zconf.h -- configuration of the zlib compression library
Chris@43 2 * Copyright (C) 1995-2013 Jean-loup Gailly.
Chris@43 3 * For conditions of distribution and use, see copyright notice in zlib.h
Chris@43 4 */
Chris@43 5
Chris@43 6 /* @(#) $Id$ */
Chris@43 7
Chris@43 8 #ifndef ZCONF_H
Chris@43 9 #define ZCONF_H
Chris@43 10
Chris@43 11 /*
Chris@43 12 * If you *really* need a unique prefix for all types and library functions,
Chris@43 13 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
Chris@43 14 * Even better than compiling with -DZ_PREFIX would be to use configure to set
Chris@43 15 * this permanently in zconf.h using "./configure --zprefix".
Chris@43 16 */
Chris@43 17 #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
Chris@43 18 # define Z_PREFIX_SET
Chris@43 19
Chris@43 20 /* all linked symbols */
Chris@43 21 # define _dist_code z__dist_code
Chris@43 22 # define _length_code z__length_code
Chris@43 23 # define _tr_align z__tr_align
Chris@43 24 # define _tr_flush_bits z__tr_flush_bits
Chris@43 25 # define _tr_flush_block z__tr_flush_block
Chris@43 26 # define _tr_init z__tr_init
Chris@43 27 # define _tr_stored_block z__tr_stored_block
Chris@43 28 # define _tr_tally z__tr_tally
Chris@43 29 # define adler32 z_adler32
Chris@43 30 # define adler32_combine z_adler32_combine
Chris@43 31 # define adler32_combine64 z_adler32_combine64
Chris@43 32 # ifndef Z_SOLO
Chris@43 33 # define compress z_compress
Chris@43 34 # define compress2 z_compress2
Chris@43 35 # define compressBound z_compressBound
Chris@43 36 # endif
Chris@43 37 # define crc32 z_crc32
Chris@43 38 # define crc32_combine z_crc32_combine
Chris@43 39 # define crc32_combine64 z_crc32_combine64
Chris@43 40 # define deflate z_deflate
Chris@43 41 # define deflateBound z_deflateBound
Chris@43 42 # define deflateCopy z_deflateCopy
Chris@43 43 # define deflateEnd z_deflateEnd
Chris@43 44 # define deflateInit2_ z_deflateInit2_
Chris@43 45 # define deflateInit_ z_deflateInit_
Chris@43 46 # define deflateParams z_deflateParams
Chris@43 47 # define deflatePending z_deflatePending
Chris@43 48 # define deflatePrime z_deflatePrime
Chris@43 49 # define deflateReset z_deflateReset
Chris@43 50 # define deflateResetKeep z_deflateResetKeep
Chris@43 51 # define deflateSetDictionary z_deflateSetDictionary
Chris@43 52 # define deflateSetHeader z_deflateSetHeader
Chris@43 53 # define deflateTune z_deflateTune
Chris@43 54 # define deflate_copyright z_deflate_copyright
Chris@43 55 # define get_crc_table z_get_crc_table
Chris@43 56 # ifndef Z_SOLO
Chris@43 57 # define gz_error z_gz_error
Chris@43 58 # define gz_intmax z_gz_intmax
Chris@43 59 # define gz_strwinerror z_gz_strwinerror
Chris@43 60 # define gzbuffer z_gzbuffer
Chris@43 61 # define gzclearerr z_gzclearerr
Chris@43 62 # define gzclose z_gzclose
Chris@43 63 # define gzclose_r z_gzclose_r
Chris@43 64 # define gzclose_w z_gzclose_w
Chris@43 65 # define gzdirect z_gzdirect
Chris@43 66 # define gzdopen z_gzdopen
Chris@43 67 # define gzeof z_gzeof
Chris@43 68 # define gzerror z_gzerror
Chris@43 69 # define gzflush z_gzflush
Chris@43 70 # define gzgetc z_gzgetc
Chris@43 71 # define gzgetc_ z_gzgetc_
Chris@43 72 # define gzgets z_gzgets
Chris@43 73 # define gzoffset z_gzoffset
Chris@43 74 # define gzoffset64 z_gzoffset64
Chris@43 75 # define gzopen z_gzopen
Chris@43 76 # define gzopen64 z_gzopen64
Chris@43 77 # ifdef _WIN32
Chris@43 78 # define gzopen_w z_gzopen_w
Chris@43 79 # endif
Chris@43 80 # define gzprintf z_gzprintf
Chris@43 81 # define gzvprintf z_gzvprintf
Chris@43 82 # define gzputc z_gzputc
Chris@43 83 # define gzputs z_gzputs
Chris@43 84 # define gzread z_gzread
Chris@43 85 # define gzrewind z_gzrewind
Chris@43 86 # define gzseek z_gzseek
Chris@43 87 # define gzseek64 z_gzseek64
Chris@43 88 # define gzsetparams z_gzsetparams
Chris@43 89 # define gztell z_gztell
Chris@43 90 # define gztell64 z_gztell64
Chris@43 91 # define gzungetc z_gzungetc
Chris@43 92 # define gzwrite z_gzwrite
Chris@43 93 # endif
Chris@43 94 # define inflate z_inflate
Chris@43 95 # define inflateBack z_inflateBack
Chris@43 96 # define inflateBackEnd z_inflateBackEnd
Chris@43 97 # define inflateBackInit_ z_inflateBackInit_
Chris@43 98 # define inflateCopy z_inflateCopy
Chris@43 99 # define inflateEnd z_inflateEnd
Chris@43 100 # define inflateGetHeader z_inflateGetHeader
Chris@43 101 # define inflateInit2_ z_inflateInit2_
Chris@43 102 # define inflateInit_ z_inflateInit_
Chris@43 103 # define inflateMark z_inflateMark
Chris@43 104 # define inflatePrime z_inflatePrime
Chris@43 105 # define inflateReset z_inflateReset
Chris@43 106 # define inflateReset2 z_inflateReset2
Chris@43 107 # define inflateSetDictionary z_inflateSetDictionary
Chris@43 108 # define inflateGetDictionary z_inflateGetDictionary
Chris@43 109 # define inflateSync z_inflateSync
Chris@43 110 # define inflateSyncPoint z_inflateSyncPoint
Chris@43 111 # define inflateUndermine z_inflateUndermine
Chris@43 112 # define inflateResetKeep z_inflateResetKeep
Chris@43 113 # define inflate_copyright z_inflate_copyright
Chris@43 114 # define inflate_fast z_inflate_fast
Chris@43 115 # define inflate_table z_inflate_table
Chris@43 116 # ifndef Z_SOLO
Chris@43 117 # define uncompress z_uncompress
Chris@43 118 # endif
Chris@43 119 # define zError z_zError
Chris@43 120 # ifndef Z_SOLO
Chris@43 121 # define zcalloc z_zcalloc
Chris@43 122 # define zcfree z_zcfree
Chris@43 123 # endif
Chris@43 124 # define zlibCompileFlags z_zlibCompileFlags
Chris@43 125 # define zlibVersion z_zlibVersion
Chris@43 126
Chris@43 127 /* all zlib typedefs in zlib.h and zconf.h */
Chris@43 128 # define Byte z_Byte
Chris@43 129 # define Bytef z_Bytef
Chris@43 130 # define alloc_func z_alloc_func
Chris@43 131 # define charf z_charf
Chris@43 132 # define free_func z_free_func
Chris@43 133 # ifndef Z_SOLO
Chris@43 134 # define gzFile z_gzFile
Chris@43 135 # endif
Chris@43 136 # define gz_header z_gz_header
Chris@43 137 # define gz_headerp z_gz_headerp
Chris@43 138 # define in_func z_in_func
Chris@43 139 # define intf z_intf
Chris@43 140 # define out_func z_out_func
Chris@43 141 # define uInt z_uInt
Chris@43 142 # define uIntf z_uIntf
Chris@43 143 # define uLong z_uLong
Chris@43 144 # define uLongf z_uLongf
Chris@43 145 # define voidp z_voidp
Chris@43 146 # define voidpc z_voidpc
Chris@43 147 # define voidpf z_voidpf
Chris@43 148
Chris@43 149 /* all zlib structs in zlib.h and zconf.h */
Chris@43 150 # define gz_header_s z_gz_header_s
Chris@43 151 # define internal_state z_internal_state
Chris@43 152
Chris@43 153 #endif
Chris@43 154
Chris@43 155 #if defined(__MSDOS__) && !defined(MSDOS)
Chris@43 156 # define MSDOS
Chris@43 157 #endif
Chris@43 158 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
Chris@43 159 # define OS2
Chris@43 160 #endif
Chris@43 161 #if defined(_WINDOWS) && !defined(WINDOWS)
Chris@43 162 # define WINDOWS
Chris@43 163 #endif
Chris@43 164 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
Chris@43 165 # ifndef WIN32
Chris@43 166 # define WIN32
Chris@43 167 # endif
Chris@43 168 #endif
Chris@43 169 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
Chris@43 170 # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
Chris@43 171 # ifndef SYS16BIT
Chris@43 172 # define SYS16BIT
Chris@43 173 # endif
Chris@43 174 # endif
Chris@43 175 #endif
Chris@43 176
Chris@43 177 /*
Chris@43 178 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
Chris@43 179 * than 64k bytes at a time (needed on systems with 16-bit int).
Chris@43 180 */
Chris@43 181 #ifdef SYS16BIT
Chris@43 182 # define MAXSEG_64K
Chris@43 183 #endif
Chris@43 184 #ifdef MSDOS
Chris@43 185 # define UNALIGNED_OK
Chris@43 186 #endif
Chris@43 187
Chris@43 188 #ifdef __STDC_VERSION__
Chris@43 189 # ifndef STDC
Chris@43 190 # define STDC
Chris@43 191 # endif
Chris@43 192 # if __STDC_VERSION__ >= 199901L
Chris@43 193 # ifndef STDC99
Chris@43 194 # define STDC99
Chris@43 195 # endif
Chris@43 196 # endif
Chris@43 197 #endif
Chris@43 198 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
Chris@43 199 # define STDC
Chris@43 200 #endif
Chris@43 201 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
Chris@43 202 # define STDC
Chris@43 203 #endif
Chris@43 204 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
Chris@43 205 # define STDC
Chris@43 206 #endif
Chris@43 207 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
Chris@43 208 # define STDC
Chris@43 209 #endif
Chris@43 210
Chris@43 211 #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
Chris@43 212 # define STDC
Chris@43 213 #endif
Chris@43 214
Chris@43 215 #ifndef STDC
Chris@43 216 # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
Chris@43 217 # define const /* note: need a more gentle solution here */
Chris@43 218 # endif
Chris@43 219 #endif
Chris@43 220
Chris@43 221 #if defined(ZLIB_CONST) && !defined(z_const)
Chris@43 222 # define z_const const
Chris@43 223 #else
Chris@43 224 # define z_const
Chris@43 225 #endif
Chris@43 226
Chris@43 227 /* Some Mac compilers merge all .h files incorrectly: */
Chris@43 228 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
Chris@43 229 # define NO_DUMMY_DECL
Chris@43 230 #endif
Chris@43 231
Chris@43 232 /* Maximum value for memLevel in deflateInit2 */
Chris@43 233 #ifndef MAX_MEM_LEVEL
Chris@43 234 # ifdef MAXSEG_64K
Chris@43 235 # define MAX_MEM_LEVEL 8
Chris@43 236 # else
Chris@43 237 # define MAX_MEM_LEVEL 9
Chris@43 238 # endif
Chris@43 239 #endif
Chris@43 240
Chris@43 241 /* Maximum value for windowBits in deflateInit2 and inflateInit2.
Chris@43 242 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
Chris@43 243 * created by gzip. (Files created by minigzip can still be extracted by
Chris@43 244 * gzip.)
Chris@43 245 */
Chris@43 246 #ifndef MAX_WBITS
Chris@43 247 # define MAX_WBITS 15 /* 32K LZ77 window */
Chris@43 248 #endif
Chris@43 249
Chris@43 250 /* The memory requirements for deflate are (in bytes):
Chris@43 251 (1 << (windowBits+2)) + (1 << (memLevel+9))
Chris@43 252 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
Chris@43 253 plus a few kilobytes for small objects. For example, if you want to reduce
Chris@43 254 the default memory requirements from 256K to 128K, compile with
Chris@43 255 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
Chris@43 256 Of course this will generally degrade compression (there's no free lunch).
Chris@43 257
Chris@43 258 The memory requirements for inflate are (in bytes) 1 << windowBits
Chris@43 259 that is, 32K for windowBits=15 (default value) plus a few kilobytes
Chris@43 260 for small objects.
Chris@43 261 */
Chris@43 262
Chris@43 263 /* Type declarations */
Chris@43 264
Chris@43 265 #ifndef OF /* function prototypes */
Chris@43 266 # ifdef STDC
Chris@43 267 # define OF(args) args
Chris@43 268 # else
Chris@43 269 # define OF(args) ()
Chris@43 270 # endif
Chris@43 271 #endif
Chris@43 272
Chris@43 273 #ifndef Z_ARG /* function prototypes for stdarg */
Chris@43 274 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
Chris@43 275 # define Z_ARG(args) args
Chris@43 276 # else
Chris@43 277 # define Z_ARG(args) ()
Chris@43 278 # endif
Chris@43 279 #endif
Chris@43 280
Chris@43 281 /* The following definitions for FAR are needed only for MSDOS mixed
Chris@43 282 * model programming (small or medium model with some far allocations).
Chris@43 283 * This was tested only with MSC; for other MSDOS compilers you may have
Chris@43 284 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
Chris@43 285 * just define FAR to be empty.
Chris@43 286 */
Chris@43 287 #ifdef SYS16BIT
Chris@43 288 # if defined(M_I86SM) || defined(M_I86MM)
Chris@43 289 /* MSC small or medium model */
Chris@43 290 # define SMALL_MEDIUM
Chris@43 291 # ifdef _MSC_VER
Chris@43 292 # define FAR _far
Chris@43 293 # else
Chris@43 294 # define FAR far
Chris@43 295 # endif
Chris@43 296 # endif
Chris@43 297 # if (defined(__SMALL__) || defined(__MEDIUM__))
Chris@43 298 /* Turbo C small or medium model */
Chris@43 299 # define SMALL_MEDIUM
Chris@43 300 # ifdef __BORLANDC__
Chris@43 301 # define FAR _far
Chris@43 302 # else
Chris@43 303 # define FAR far
Chris@43 304 # endif
Chris@43 305 # endif
Chris@43 306 #endif
Chris@43 307
Chris@43 308 #if defined(WINDOWS) || defined(WIN32)
Chris@43 309 /* If building or using zlib as a DLL, define ZLIB_DLL.
Chris@43 310 * This is not mandatory, but it offers a little performance increase.
Chris@43 311 */
Chris@43 312 # ifdef ZLIB_DLL
Chris@43 313 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
Chris@43 314 # ifdef ZLIB_INTERNAL
Chris@43 315 # define ZEXTERN extern __declspec(dllexport)
Chris@43 316 # else
Chris@43 317 # define ZEXTERN extern __declspec(dllimport)
Chris@43 318 # endif
Chris@43 319 # endif
Chris@43 320 # endif /* ZLIB_DLL */
Chris@43 321 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
Chris@43 322 * define ZLIB_WINAPI.
Chris@43 323 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
Chris@43 324 */
Chris@43 325 # ifdef ZLIB_WINAPI
Chris@43 326 # ifdef FAR
Chris@43 327 # undef FAR
Chris@43 328 # endif
Chris@43 329 # include <windows.h>
Chris@43 330 /* No need for _export, use ZLIB.DEF instead. */
Chris@43 331 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
Chris@43 332 # define ZEXPORT WINAPI
Chris@43 333 # ifdef WIN32
Chris@43 334 # define ZEXPORTVA WINAPIV
Chris@43 335 # else
Chris@43 336 # define ZEXPORTVA FAR CDECL
Chris@43 337 # endif
Chris@43 338 # endif
Chris@43 339 #endif
Chris@43 340
Chris@43 341 #if defined (__BEOS__)
Chris@43 342 # ifdef ZLIB_DLL
Chris@43 343 # ifdef ZLIB_INTERNAL
Chris@43 344 # define ZEXPORT __declspec(dllexport)
Chris@43 345 # define ZEXPORTVA __declspec(dllexport)
Chris@43 346 # else
Chris@43 347 # define ZEXPORT __declspec(dllimport)
Chris@43 348 # define ZEXPORTVA __declspec(dllimport)
Chris@43 349 # endif
Chris@43 350 # endif
Chris@43 351 #endif
Chris@43 352
Chris@43 353 #ifndef ZEXTERN
Chris@43 354 # define ZEXTERN extern
Chris@43 355 #endif
Chris@43 356 #ifndef ZEXPORT
Chris@43 357 # define ZEXPORT
Chris@43 358 #endif
Chris@43 359 #ifndef ZEXPORTVA
Chris@43 360 # define ZEXPORTVA
Chris@43 361 #endif
Chris@43 362
Chris@43 363 #ifndef FAR
Chris@43 364 # define FAR
Chris@43 365 #endif
Chris@43 366
Chris@43 367 #if !defined(__MACTYPES__)
Chris@43 368 typedef unsigned char Byte; /* 8 bits */
Chris@43 369 #endif
Chris@43 370 typedef unsigned int uInt; /* 16 bits or more */
Chris@43 371 typedef unsigned long uLong; /* 32 bits or more */
Chris@43 372
Chris@43 373 #ifdef SMALL_MEDIUM
Chris@43 374 /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
Chris@43 375 # define Bytef Byte FAR
Chris@43 376 #else
Chris@43 377 typedef Byte FAR Bytef;
Chris@43 378 #endif
Chris@43 379 typedef char FAR charf;
Chris@43 380 typedef int FAR intf;
Chris@43 381 typedef uInt FAR uIntf;
Chris@43 382 typedef uLong FAR uLongf;
Chris@43 383
Chris@43 384 #ifdef STDC
Chris@43 385 typedef void const *voidpc;
Chris@43 386 typedef void FAR *voidpf;
Chris@43 387 typedef void *voidp;
Chris@43 388 #else
Chris@43 389 typedef Byte const *voidpc;
Chris@43 390 typedef Byte FAR *voidpf;
Chris@43 391 typedef Byte *voidp;
Chris@43 392 #endif
Chris@43 393
Chris@43 394 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
Chris@43 395 # include <limits.h>
Chris@43 396 # if (UINT_MAX == 0xffffffffUL)
Chris@43 397 # define Z_U4 unsigned
Chris@43 398 # elif (ULONG_MAX == 0xffffffffUL)
Chris@43 399 # define Z_U4 unsigned long
Chris@43 400 # elif (USHRT_MAX == 0xffffffffUL)
Chris@43 401 # define Z_U4 unsigned short
Chris@43 402 # endif
Chris@43 403 #endif
Chris@43 404
Chris@43 405 #ifdef Z_U4
Chris@43 406 typedef Z_U4 z_crc_t;
Chris@43 407 #else
Chris@43 408 typedef unsigned long z_crc_t;
Chris@43 409 #endif
Chris@43 410
Chris@43 411 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
Chris@43 412 # define Z_HAVE_UNISTD_H
Chris@43 413 #endif
Chris@43 414
Chris@43 415 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
Chris@43 416 # define Z_HAVE_STDARG_H
Chris@43 417 #endif
Chris@43 418
Chris@43 419 #ifdef STDC
Chris@43 420 # ifndef Z_SOLO
Chris@43 421 # include <sys/types.h> /* for off_t */
Chris@43 422 # endif
Chris@43 423 #endif
Chris@43 424
Chris@43 425 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
Chris@43 426 # ifndef Z_SOLO
Chris@43 427 # include <stdarg.h> /* for va_list */
Chris@43 428 # endif
Chris@43 429 #endif
Chris@43 430
Chris@43 431 #ifdef _WIN32
Chris@43 432 # ifndef Z_SOLO
Chris@43 433 # include <stddef.h> /* for wchar_t */
Chris@43 434 # endif
Chris@43 435 #endif
Chris@43 436
Chris@43 437 /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
Chris@43 438 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
Chris@43 439 * though the former does not conform to the LFS document), but considering
Chris@43 440 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
Chris@43 441 * equivalently requesting no 64-bit operations
Chris@43 442 */
Chris@43 443 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
Chris@43 444 # undef _LARGEFILE64_SOURCE
Chris@43 445 #endif
Chris@43 446
Chris@43 447 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
Chris@43 448 # define Z_HAVE_UNISTD_H
Chris@43 449 #endif
Chris@43 450 #ifndef Z_SOLO
Chris@43 451 # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
Chris@43 452 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
Chris@43 453 # ifdef VMS
Chris@43 454 # include <unixio.h> /* for off_t */
Chris@43 455 # endif
Chris@43 456 # ifndef z_off_t
Chris@43 457 # define z_off_t off_t
Chris@43 458 # endif
Chris@43 459 # endif
Chris@43 460 #endif
Chris@43 461
Chris@43 462 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
Chris@43 463 # define Z_LFS64
Chris@43 464 #endif
Chris@43 465
Chris@43 466 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
Chris@43 467 # define Z_LARGE64
Chris@43 468 #endif
Chris@43 469
Chris@43 470 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
Chris@43 471 # define Z_WANT64
Chris@43 472 #endif
Chris@43 473
Chris@43 474 #if !defined(SEEK_SET) && !defined(Z_SOLO)
Chris@43 475 # define SEEK_SET 0 /* Seek from beginning of file. */
Chris@43 476 # define SEEK_CUR 1 /* Seek from current position. */
Chris@43 477 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
Chris@43 478 #endif
Chris@43 479
Chris@43 480 #ifndef z_off_t
Chris@43 481 # define z_off_t long
Chris@43 482 #endif
Chris@43 483
Chris@43 484 #if !defined(_WIN32) && defined(Z_LARGE64)
Chris@43 485 # define z_off64_t off64_t
Chris@43 486 #else
Chris@43 487 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
Chris@43 488 # define z_off64_t __int64
Chris@43 489 # else
Chris@43 490 # define z_off64_t z_off_t
Chris@43 491 # endif
Chris@43 492 #endif
Chris@43 493
Chris@43 494 /* MVS linker does not support external names larger than 8 bytes */
Chris@43 495 #if defined(__MVS__)
Chris@43 496 #pragma map(deflateInit_,"DEIN")
Chris@43 497 #pragma map(deflateInit2_,"DEIN2")
Chris@43 498 #pragma map(deflateEnd,"DEEND")
Chris@43 499 #pragma map(deflateBound,"DEBND")
Chris@43 500 #pragma map(inflateInit_,"ININ")
Chris@43 501 #pragma map(inflateInit2_,"ININ2")
Chris@43 502 #pragma map(inflateEnd,"INEND")
Chris@43 503 #pragma map(inflateSync,"INSY")
Chris@43 504 #pragma map(inflateSetDictionary,"INSEDI")
Chris@43 505 #pragma map(compressBound,"CMBND")
Chris@43 506 #pragma map(inflate_table,"INTABL")
Chris@43 507 #pragma map(inflate_fast,"INFA")
Chris@43 508 #pragma map(inflate_copyright,"INCOPY")
Chris@43 509 #endif
Chris@43 510
Chris@43 511 #endif /* ZCONF_H */