From a7d70663cf4a7d4013ff7d285da01a164ed9b207 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:34:45 -0700 Subject: zlib 1.2.4.4 --- zconf.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index 1988920..f5a6c87 100644 --- a/zconf.h +++ b/zconf.h @@ -315,7 +315,7 @@ # endif #endif -#ifdef HAVE_VISIBILITY_PRAGMA +#ifndef NO_VIZ # define ZEXTERN __attribute__((visibility ("default"))) extern #endif @@ -368,6 +368,16 @@ typedef uLong FAR uLongf; # include /* for off_t */ #endif +/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and + * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even + * though the former does not conform to the LFS document), but considering + * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as + * equivalently requesting no 64-bit operations + */ +#if -_LARGEFILE64_SOURCE - -1 == 1 +# undef _LARGEFILE64_SOURCE +#endif + #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) # include /* for SEEK_* and off_t */ # ifdef VMS -- cgit v1.2.1