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