diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:34:45 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:34:45 -0700 |
| commit | a7d70663cf4a7d4013ff7d285da01a164ed9b207 (patch) | |
| tree | bbf446cac984191a2bcae6390f366886d0a3de18 /zconf.h | |
| parent | f4498bea2865325dce71189af47a047529229f22 (diff) | |
| download | zlib-1.2.4.4.tar.gz zlib-1.2.4.4.tar.bz2 zlib-1.2.4.4.zip | |
zlib 1.2.4.4v1.2.4.4
Diffstat (limited to 'zconf.h')
| -rw-r--r-- | zconf.h | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -315,7 +315,7 @@ | |||
| 315 | # endif | 315 | # endif |
| 316 | #endif | 316 | #endif |
| 317 | 317 | ||
| 318 | #ifdef HAVE_VISIBILITY_PRAGMA | 318 | #ifndef NO_VIZ |
| 319 | # define ZEXTERN __attribute__((visibility ("default"))) extern | 319 | # define ZEXTERN __attribute__((visibility ("default"))) extern |
| 320 | #endif | 320 | #endif |
| 321 | 321 | ||
| @@ -368,6 +368,16 @@ typedef uLong FAR uLongf; | |||
| 368 | # include <sys/types.h> /* for off_t */ | 368 | # include <sys/types.h> /* for off_t */ |
| 369 | #endif | 369 | #endif |
| 370 | 370 | ||
| 371 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||
| 372 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||
| 373 | * though the former does not conform to the LFS document), but considering | ||
| 374 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||
| 375 | * equivalently requesting no 64-bit operations | ||
| 376 | */ | ||
| 377 | #if -_LARGEFILE64_SOURCE - -1 == 1 | ||
| 378 | # undef _LARGEFILE64_SOURCE | ||
| 379 | #endif | ||
| 380 | |||
| 371 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | 381 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) |
| 372 | # include <unistd.h> /* for SEEK_* and off_t */ | 382 | # include <unistd.h> /* for SEEK_* and off_t */ |
| 373 | # ifdef VMS | 383 | # ifdef VMS |
