diff options
Diffstat (limited to 'zconf.h')
-rw-r--r-- | zconf.h | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* zconf.h -- configuration of the zlib compression library | 1 | /* zconf.h -- configuration of the zlib compression library |
2 | * Copyright (C) 1995-2010 Jean-loup Gailly. | 2 | * Copyright (C) 1995-2011 Jean-loup Gailly. |
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 | ||
@@ -15,6 +15,7 @@ | |||
15 | * this permanently in zconf.h using "./configure --zprefix". | 15 | * this permanently in zconf.h using "./configure --zprefix". |
16 | */ | 16 | */ |
17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ | 17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ |
18 | # define Z_PREFIX_SET | ||
18 | 19 | ||
19 | /* all linked symbols */ | 20 | /* all linked symbols */ |
20 | # define _dist_code z__dist_code | 21 | # define _dist_code z__dist_code |
@@ -40,6 +41,7 @@ | |||
40 | # define deflateInit2_ z_deflateInit2_ | 41 | # define deflateInit2_ z_deflateInit2_ |
41 | # define deflateInit_ z_deflateInit_ | 42 | # define deflateInit_ z_deflateInit_ |
42 | # define deflateParams z_deflateParams | 43 | # define deflateParams z_deflateParams |
44 | # define deflatePending z_deflatePending | ||
43 | # define deflatePrime z_deflatePrime | 45 | # define deflatePrime z_deflatePrime |
44 | # define deflateReset z_deflateReset | 46 | # define deflateReset z_deflateReset |
45 | # define deflateSetDictionary z_deflateSetDictionary | 47 | # define deflateSetDictionary z_deflateSetDictionary |
@@ -243,6 +245,14 @@ | |||
243 | # endif | 245 | # endif |
244 | #endif | 246 | #endif |
245 | 247 | ||
248 | #ifndef ON /* function prototypes for stdarg */ | ||
249 | # if defined(STDC) || defined(Z_HAVE_STDARG_H) | ||
250 | # define ON(args) args | ||
251 | # else | ||
252 | # define ON(args) () | ||
253 | # endif | ||
254 | #endif | ||
255 | |||
246 | /* The following definitions for FAR are needed only for MSDOS mixed | 256 | /* The following definitions for FAR are needed only for MSDOS mixed |
247 | * model programming (small or medium model with some far allocations). | 257 | * model programming (small or medium model with some far allocations). |
248 | * This was tested only with MSC; for other MSDOS compilers you may have | 258 | * This was tested only with MSC; for other MSDOS compilers you may have |
@@ -360,6 +370,10 @@ typedef uLong FAR uLongf; | |||
360 | # define Z_HAVE_UNISTD_H | 370 | # define Z_HAVE_UNISTD_H |
361 | #endif | 371 | #endif |
362 | 372 | ||
373 | #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ | ||
374 | # define Z_HAVE_STDARG_H | ||
375 | #endif | ||
376 | |||
363 | #ifdef STDC | 377 | #ifdef STDC |
364 | # include <sys/types.h> /* for off_t */ | 378 | # include <sys/types.h> /* for off_t */ |
365 | #endif | 379 | #endif |
@@ -374,7 +388,11 @@ typedef uLong FAR uLongf; | |||
374 | # undef _LARGEFILE64_SOURCE | 388 | # undef _LARGEFILE64_SOURCE |
375 | #endif | 389 | #endif |
376 | 390 | ||
377 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | 391 | #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 |
392 | # define Z_LARGE | ||
393 | #endif | ||
394 | |||
395 | #if defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE) | ||
378 | # include <unistd.h> /* for SEEK_* and off_t */ | 396 | # include <unistd.h> /* for SEEK_* and off_t */ |
379 | # ifdef VMS | 397 | # ifdef VMS |
380 | # include <unixio.h> /* for off_t */ | 398 | # include <unixio.h> /* for off_t */ |