comparison zlib/zconf.h @ 2690:9ef72ee5c0b0

Update vendored zlib to 1.3.1
author Michael Pavone <pavone@retrodev.com>
date Sun, 15 Jun 2025 15:39:33 -0700
parents 00d788dac91a
children
comparison
equal deleted inserted replaced
2689:bd6e33de0972 2690:9ef72ee5c0b0
1 /* zconf.h -- configuration of the zlib compression library 1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler 2 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6 /* @(#) $Id$ */ 6 /* @(#) $Id$ */
7 7
36 # define compressBound z_compressBound 36 # define compressBound z_compressBound
37 # endif 37 # endif
38 # define crc32 z_crc32 38 # define crc32 z_crc32
39 # define crc32_combine z_crc32_combine 39 # define crc32_combine z_crc32_combine
40 # define crc32_combine64 z_crc32_combine64 40 # define crc32_combine64 z_crc32_combine64
41 # define crc32_combine_gen z_crc32_combine_gen
42 # define crc32_combine_gen64 z_crc32_combine_gen64
43 # define crc32_combine_op z_crc32_combine_op
41 # define crc32_z z_crc32_z 44 # define crc32_z z_crc32_z
42 # define deflate z_deflate 45 # define deflate z_deflate
43 # define deflateBound z_deflateBound 46 # define deflateBound z_deflateBound
44 # define deflateCopy z_deflateCopy 47 # define deflateCopy z_deflateCopy
45 # define deflateEnd z_deflateEnd 48 # define deflateEnd z_deflateEnd
236 #else 239 #else
237 # define z_const 240 # define z_const
238 #endif 241 #endif
239 242
240 #ifdef Z_SOLO 243 #ifdef Z_SOLO
241 typedef unsigned long z_size_t; 244 # ifdef _WIN64
245 typedef unsigned long long z_size_t;
246 # else
247 typedef unsigned long z_size_t;
248 # endif
242 #else 249 #else
243 # define z_longlong long long 250 # define z_longlong long long
244 # if defined(NO_SIZE_T) 251 # if defined(NO_SIZE_T)
245 typedef unsigned NO_SIZE_T z_size_t; 252 typedef unsigned NO_SIZE_T z_size_t;
246 # elif defined(STDC) 253 # elif defined(STDC)
288 #ifndef OF /* function prototypes */ 295 #ifndef OF /* function prototypes */
289 # ifdef STDC 296 # ifdef STDC
290 # define OF(args) args 297 # define OF(args) args
291 # else 298 # else
292 # define OF(args) () 299 # define OF(args) ()
293 # endif
294 #endif
295
296 #ifndef Z_ARG /* function prototypes for stdarg */
297 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
298 # define Z_ARG(args) args
299 # else
300 # define Z_ARG(args) ()
301 # endif 300 # endif
302 #endif 301 #endif
303 302
304 /* The following definitions for FAR are needed only for MSDOS mixed 303 /* The following definitions for FAR are needed only for MSDOS mixed
305 * model programming (small or medium model with some far allocations). 304 * model programming (small or medium model with some far allocations).
347 */ 346 */
348 # ifdef ZLIB_WINAPI 347 # ifdef ZLIB_WINAPI
349 # ifdef FAR 348 # ifdef FAR
350 # undef FAR 349 # undef FAR
351 # endif 350 # endif
351 # ifndef WIN32_LEAN_AND_MEAN
352 # define WIN32_LEAN_AND_MEAN
353 # endif
352 # include <windows.h> 354 # include <windows.h>
353 /* No need for _export, use ZLIB.DEF instead. */ 355 /* No need for _export, use ZLIB.DEF instead. */
354 /* For complete Windows compatibility, use WINAPI, not __stdcall. */ 356 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
355 # define ZEXPORT WINAPI 357 # define ZEXPORT WINAPI
356 # ifdef WIN32 358 # ifdef WIN32
465 */ 467 */
466 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 468 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
467 # undef _LARGEFILE64_SOURCE 469 # undef _LARGEFILE64_SOURCE
468 #endif 470 #endif
469 471
470 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 472 #ifndef Z_HAVE_UNISTD_H
471 # define Z_HAVE_UNISTD_H 473 # ifdef __WATCOMC__
474 # define Z_HAVE_UNISTD_H
475 # endif
476 #endif
477 #ifndef Z_HAVE_UNISTD_H
478 # if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)
479 # define Z_HAVE_UNISTD_H
480 # endif
472 #endif 481 #endif
473 #ifndef Z_SOLO 482 #ifndef Z_SOLO
474 # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 483 # if defined(Z_HAVE_UNISTD_H)
475 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 484 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
476 # ifdef VMS 485 # ifdef VMS
477 # include <unixio.h> /* for off_t */ 486 # include <unixio.h> /* for off_t */
478 # endif 487 # endif
479 # ifndef z_off_t 488 # ifndef z_off_t
505 #endif 514 #endif
506 515
507 #if !defined(_WIN32) && defined(Z_LARGE64) 516 #if !defined(_WIN32) && defined(Z_LARGE64)
508 # define z_off64_t off64_t 517 # define z_off64_t off64_t
509 #else 518 #else
510 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 519 # if defined(_WIN32) && !defined(__GNUC__)
511 # define z_off64_t __int64 520 # define z_off64_t __int64
512 # else 521 # else
513 # define z_off64_t z_off_t 522 # define z_off64_t z_off_t
514 # endif 523 # endif
515 #endif 524 #endif