annotate src/zlib-1.2.8/zconf.h.cmakein @ 147:45360b968bf4

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