diff options
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r-- | zconf.h.cmakein | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein index af4e92e..c08d177 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein | |||
@@ -401,17 +401,17 @@ typedef uLong FAR uLongf; | |||
401 | # endif | 401 | # endif |
402 | #endif | 402 | #endif |
403 | 403 | ||
404 | /* accommodate both "#define _LARGEFILE64_SOURCE" and | 404 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and |
405 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | 405 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even |
406 | * though the former does not conform to the LFS document), but consider | 406 | * though the former does not conform to the LFS document), but considering |
407 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | 407 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as |
408 | * equivalently requesting no 64-bit operations | 408 | * equivalently requesting no 64-bit operations |
409 | */ | 409 | */ |
410 | #if defined(LARGEFILE64_SOURCE) && _LARGEFILE64_SOURCE == 0 | 410 | #if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 |
411 | # undef _LARGEFILE64_SOURCE | 411 | # undef _LARGEFILE64_SOURCE |
412 | #endif | 412 | #endif |
413 | 413 | ||
414 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE == 1 | 414 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 |
415 | # define Z_LFS64 | 415 | # define Z_LFS64 |
416 | #endif | 416 | #endif |
417 | 417 | ||
@@ -419,7 +419,7 @@ typedef uLong FAR uLongf; | |||
419 | # define Z_LARGE64 | 419 | # define Z_LARGE64 |
420 | #endif | 420 | #endif |
421 | 421 | ||
422 | #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(Z_LFS64) | 422 | #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) |
423 | # define Z_WANT64 | 423 | # define Z_WANT64 |
424 | #endif | 424 | #endif |
425 | 425 | ||