annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/zconf.h @ 69:33d812a61356

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