From f4498bea2865325dce71189af47a047529229f22 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:34:38 -0700 Subject: [PATCH] zlib 1.2.4.3 --- ChangeLog | 11 +++++++ Makefile.in | 2 +- README | 4 +-- configure | 34 ++++++++++++++++++--- contrib/delphi/ZLib.pas | 2 +- contrib/dotzlib/DotZLib/UnitTests.cs | 4 +-- contrib/infback9/inftree9.c | 4 +-- contrib/pascal/zlibpas.pas | 2 +- contrib/vstudio/vc10/zlib.rc | 6 ++-- contrib/vstudio/vc9/zlib.rc | 6 ++-- deflate.c | 2 +- gzguts.h | 16 +++------- gzlib.c | 2 +- inftrees.c | 4 +-- minigzip.c | 2 +- qnx/package.qpg | 10 +++--- treebuild.xml | 4 +-- zconf.h | 8 ++++- zconf.h.cmakein | 8 ++++- zconf.h.in | 8 ++++- zlib.3 | 4 +-- zlib.3.pdf | Bin 8701 -> 8681 bytes zlib.h | 44 ++++++++++++++++----------- zutil.h | 8 +---- 24 files changed, 122 insertions(+), 73 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33a740d..898c197 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,17 @@ ChangeLog file for zlib +Changes in 1.2.4.3 (10 Apr 2010) +- Only use CROSS_PREFIX in configure for ar and ranlib if they exist +- Use CROSS_PREFIX for nm [Bar-Lev] +- Assume _LARGEFILE64_SOURCE defined is equivalent to true +- Avoid use of undefined symbols in #if with && and || +- Make *64 prototypes in gzguts.h consistent with functions +- Add -shared load option for MinGW in configure [Bowler] +- Move z_off64_t to public interface, use instead of off64_t +- Remove ! from shell test in configure (not portable to Solaris) +- Change +0 macro tests to -0 for possibly increased portability + Changes in 1.2.4.2 (9 Apr 2010) - Add consistent carriage returns to readme.txt's in masmx86 and masmx64 - Really provide prototypes for *64 functions when building without LFS diff --git a/Makefile.in b/Makefile.in index e5bc2a3..aca5924 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,7 +32,7 @@ CPP=$(CC) -E STATICLIB=libz.a SHAREDLIB=libz.so -SHAREDLIBV=libz.so.1.2.4.2 +SHAREDLIBV=libz.so.1.2.4.3 SHAREDLIBM=libz.so.1 LIBS=$(STATICLIB) $(SHAREDLIBV) diff --git a/README b/README index 3c4f36e..68ff992 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ ZLIB DATA COMPRESSION LIBRARY -zlib 1.2.4.2 is a general purpose data compression library. All the code is +zlib 1.2.4.3 is a general purpose data compression library. All the code is thread safe. The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) @@ -31,7 +31,7 @@ Mark Nelson wrote an article about zlib for the Jan. 1997 issue of Dr. Dobb's Journal; a copy of the article is available at http://marknelson.us/1997/01/01/zlib-engine/ . -The changes made in version 1.2.4.2 are documented in the file ChangeLog. +The changes made in version 1.2.4.3 are documented in the file ChangeLog. Unsupported third party contributions are provided in directory contrib/ . diff --git a/configure b/configure index 577cba7..7ff484b 100755 --- a/configure +++ b/configure @@ -13,11 +13,21 @@ # If you have problems, try without defining CC and CFLAGS before reporting # an error. -# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo) +# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo, +# except their's wasn't portable enough due to ! usage, so this is better) if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then unset foo - (: ${foo%%bar}) 2>/dev/null && ! (: ${foo?}) 2>/dev/null + try=0 + (: ${foo%%bar}) 2>/dev/null if test "$?" -ne 0; then + try=1 + else + (: ${foo?}) 2>/dev/null + if test "$?" -eq 0; then + try=1 + fi + fi + if test "$try" -eq 1; then ZLIB_CONFIGURE_EXEC=1 export ZLIB_CONFIGURE_EXEC type "bash" > /dev/null 2>&1 && exec bash "$0" "$@" @@ -29,6 +39,7 @@ if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then # exit 1 # we could give up here, but go ahead and give their old sh a try fi + unset try fi if [ -n "${CHOST}" ]; then @@ -42,10 +53,22 @@ VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` -AR=${AR-"${CROSS_PREFIX}ar"} +if [ -x "${CROSS_PREFIX}ar" ]; then + AR=${AR-"${CROSS_PREFIX}ar"} +else + AR=${AR-"ar"} +fi AR_RC="${AR} rc" -RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} -NM=${NM-"nm"} +if [ -x "${CROSS_PREFIX}ranlib" ]; then + RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} +else + RANLIB=${RANLIB-"ranlib"} +fi +if [ -x "${CROSS_PREFIX}nm" ]; then + NM=${NM-"${CROSS_PREFIX}nm"} +else + NM=${NM-"nm"} +fi LDCONFIG=${LDCONFIG-"ldconfig"} LDSHAREDLIBC="${LDSHAREDLIBC-"-lc"}" prefix=${prefix-/usr/local} @@ -121,6 +144,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then CYGWIN* | Cygwin* | cygwin* | OS/2*) EXE='.exe' ;; MINGW*) + LDSHARED=${LDSHARED-"$cc -shared"} LDSHAREDLIBC="" EXE='.exe' ;; QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 diff --git a/contrib/delphi/ZLib.pas b/contrib/delphi/ZLib.pas index 72ef99f..6ed89ce 100644 --- a/contrib/delphi/ZLib.pas +++ b/contrib/delphi/ZLib.pas @@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; const OutBuf: Pointer; BufSize: Integer); const - zlib_version = '1.2.4.2'; + zlib_version = '1.2.4.3'; type EZlibError = class(Exception); diff --git a/contrib/dotzlib/DotZLib/UnitTests.cs b/contrib/dotzlib/DotZLib/UnitTests.cs index 6cfdaa7..0668c9f 100644 --- a/contrib/dotzlib/DotZLib/UnitTests.cs +++ b/contrib/dotzlib/DotZLib/UnitTests.cs @@ -156,7 +156,7 @@ namespace DotZLibTests public void Info_Version() { Info info = new Info(); - Assert.AreEqual("1.2.4.2", Info.Version); + Assert.AreEqual("1.2.4.3", Info.Version); Assert.AreEqual(32, info.SizeOfUInt); Assert.AreEqual(32, info.SizeOfULong); Assert.AreEqual(32, info.SizeOfPointer); @@ -271,4 +271,4 @@ namespace DotZLibTests } } -#endif \ No newline at end of file +#endif diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c index 362008c..a67f21d 100644 --- a/contrib/infback9/inftree9.c +++ b/contrib/infback9/inftree9.c @@ -9,7 +9,7 @@ #define MAXBITS 15 const char inflate9_copyright[] = - " inflate9 1.2.4.2 Copyright 1995-2010 Mark Adler "; + " inflate9 1.2.4.3 Copyright 1995-2010 Mark Adler "; /* If you use the zlib library in a product, an acknowledgment is welcome in the documentation of your product. If for some reason you cannot @@ -64,7 +64,7 @@ unsigned short FAR *work; static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, - 133, 133, 133, 133, 144, 202, 75}; + 133, 133, 133, 133, 144, 195, 66}; static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, diff --git a/contrib/pascal/zlibpas.pas b/contrib/pascal/zlibpas.pas index e0bc74b..28383bc 100644 --- a/contrib/pascal/zlibpas.pas +++ b/contrib/pascal/zlibpas.pas @@ -10,7 +10,7 @@ unit zlibpas; interface const - ZLIB_VERSION = '1.2.4.2'; + ZLIB_VERSION = '1.2.4.3'; type alloc_func = function(opaque: Pointer; items, size: Integer): Pointer; diff --git a/contrib/vstudio/vc10/zlib.rc b/contrib/vstudio/vc10/zlib.rc index 38615f0..6d8cd3c 100644 --- a/contrib/vstudio/vc10/zlib.rc +++ b/contrib/vstudio/vc10/zlib.rc @@ -2,8 +2,8 @@ #define IDR_VERSION1 1 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE - FILEVERSION 1,2,4,2 - PRODUCTVERSION 1,2,4,2 + FILEVERSION 1,2,4,3 + PRODUCTVERSION 1,2,4,3 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS 0 FILEOS VOS_DOS_WINDOWS32 @@ -17,7 +17,7 @@ BEGIN BEGIN VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" - VALUE "FileVersion", "1.2.4.2\0" + VALUE "FileVersion", "1.2.4.3\0" VALUE "InternalName", "zlib\0" VALUE "OriginalFilename", "zlib.dll\0" VALUE "ProductName", "ZLib.DLL\0" diff --git a/contrib/vstudio/vc9/zlib.rc b/contrib/vstudio/vc9/zlib.rc index 38615f0..6d8cd3c 100644 --- a/contrib/vstudio/vc9/zlib.rc +++ b/contrib/vstudio/vc9/zlib.rc @@ -2,8 +2,8 @@ #define IDR_VERSION1 1 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE - FILEVERSION 1,2,4,2 - PRODUCTVERSION 1,2,4,2 + FILEVERSION 1,2,4,3 + PRODUCTVERSION 1,2,4,3 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS 0 FILEOS VOS_DOS_WINDOWS32 @@ -17,7 +17,7 @@ BEGIN BEGIN VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" - VALUE "FileVersion", "1.2.4.2\0" + VALUE "FileVersion", "1.2.4.3\0" VALUE "InternalName", "zlib\0" VALUE "OriginalFilename", "zlib.dll\0" VALUE "ProductName", "ZLib.DLL\0" diff --git a/deflate.c b/deflate.c index 7025528..efb26bf 100644 --- a/deflate.c +++ b/deflate.c @@ -52,7 +52,7 @@ #include "deflate.h" const char deflate_copyright[] = - " deflate 1.2.4.2 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; + " deflate 1.2.4.3 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; /* If you use the zlib library in a product, an acknowledgment is welcome in the documentation of your product. If for some reason you cannot diff --git a/gzguts.h b/gzguts.h index a0e7119..b0a4cbd 100644 --- a/gzguts.h +++ b/gzguts.h @@ -3,7 +3,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ -#if _LARGEFILE64_SOURCE +#ifdef _LARGEFILE64_SOURCE # ifndef _LARGEFILE_SOURCE # define _LARGEFILE_SOURCE 1 # endif @@ -56,18 +56,12 @@ # endif #endif -#if _LARGEFILE64_SOURCE -# define z_off64_t off64_t -#else -# define z_off64_t z_off_t -#endif - /* provide prototypes for these when building zlib without LFS */ -#if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 +#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); - ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); - ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); - ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); + ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); + ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); + ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); #endif /* default i/o buffer size -- double this for output when reading */ diff --git a/gzlib.c b/gzlib.c index d1b6253..1839002 100644 --- a/gzlib.c +++ b/gzlib.c @@ -5,7 +5,7 @@ #include "gzguts.h" -#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE +#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 # define LSEEK lseek64 #else # define LSEEK lseek diff --git a/inftrees.c b/inftrees.c index 1ea90f7..430b174 100644 --- a/inftrees.c +++ b/inftrees.c @@ -9,7 +9,7 @@ #define MAXBITS 15 const char inflate_copyright[] = - " inflate 1.2.4.2 Copyright 1995-2010 Mark Adler "; + " inflate 1.2.4.3 Copyright 1995-2010 Mark Adler "; /* If you use the zlib library in a product, an acknowledgment is welcome in the documentation of your product. If for some reason you cannot @@ -62,7 +62,7 @@ unsigned short FAR *work; 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, - 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 202, 75}; + 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 195, 66}; static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, diff --git a/minigzip.c b/minigzip.c index f43cb54..9825ccc 100644 --- a/minigzip.c +++ b/minigzip.c @@ -53,7 +53,7 @@ # include /* for fileno */ #endif -#if !defined(Z_HAVE_UNISTD_H) && _LARGEFILE64_SOURCE+0 != 1 +#if !defined(Z_HAVE_UNISTD_H) && !defined(_LARGEFILE64_SOURCE) #ifndef WIN32 /* unlink already in stdio.h for WIN32 */ extern int unlink OF((const char *)); #endif diff --git a/qnx/package.qpg b/qnx/package.qpg index 99d3701..55cb3e1 100644 --- a/qnx/package.qpg +++ b/qnx/package.qpg @@ -25,10 +25,10 @@ - - - - + + + + @@ -63,7 +63,7 @@ - 1.2.4.2 + 1.2.4.3 Medium Stable diff --git a/treebuild.xml b/treebuild.xml index d2c6a25..616ed3f 100644 --- a/treebuild.xml +++ b/treebuild.xml @@ -1,6 +1,6 @@ - - + + zip compression library diff --git a/zconf.h b/zconf.h index d3eaf91..1988920 100644 --- a/zconf.h +++ b/zconf.h @@ -368,7 +368,7 @@ typedef uLong FAR uLongf; # include /* for off_t */ #endif -#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE +#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) # include /* for SEEK_* and off_t */ # ifdef VMS # include /* for off_t */ @@ -388,6 +388,12 @@ typedef uLong FAR uLongf; # define z_off_t long #endif +#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 +# define z_off64_t off64_t +#else +# define z_off64_t z_off_t +#endif + #if defined(__OS400__) # define NO_vsnprintf #endif diff --git a/zconf.h.cmakein b/zconf.h.cmakein index bbe25a7..cf9cc24 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -370,7 +370,7 @@ typedef uLong FAR uLongf; # include /* for off_t */ #endif -#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE +#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) # include /* for SEEK_* and off_t */ # ifdef VMS # include /* for off_t */ @@ -390,6 +390,12 @@ typedef uLong FAR uLongf; # define z_off_t long #endif +#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 +# define z_off64_t off64_t +#else +# define z_off64_t z_off_t +#endif + #if defined(__OS400__) # define NO_vsnprintf #endif diff --git a/zconf.h.in b/zconf.h.in index d3eaf91..1988920 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -368,7 +368,7 @@ typedef uLong FAR uLongf; # include /* for off_t */ #endif -#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE +#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) # include /* for SEEK_* and off_t */ # ifdef VMS # include /* for off_t */ @@ -388,6 +388,12 @@ typedef uLong FAR uLongf; # define z_off_t long #endif +#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 +# define z_off64_t off64_t +#else +# define z_off64_t z_off_t +#endif + #if defined(__OS400__) # define NO_vsnprintf #endif diff --git a/zlib.3 b/zlib.3 index 552318d..b534616 100644 --- a/zlib.3 +++ b/zlib.3 @@ -1,4 +1,4 @@ -.TH ZLIB 3 "9 Apr 2010" +.TH ZLIB 3 "10 Apr 2010" .SH NAME zlib \- compression/decompression library .SH SYNOPSIS @@ -125,7 +125,7 @@ before asking for help. Send questions and/or comments to zlib@gzip.org, or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). .SH AUTHORS -Version 1.2.4.2 +Version 1.2.4.3 Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org) and Mark Adler (madler@alumni.caltech.edu). .LP diff --git a/zlib.3.pdf b/zlib.3.pdf index abbbb7ffef0c21d31491cdea2b916a283ade57c6..584f7930e8eee594a12f64a127593de69e6f7307 100644 GIT binary patch delta 6196 zcma);WmweT*7u2_mG15wU|4bxMU)0G-$)U%RNa*&^_cMpV3K3prBoQF)oE3~(6*_lm#fVZ6^3^0AyxY9>v4MtGT)BmNhAb-!KYTpR@PAw(U1i9%D|TV62B99OcQ zr3g=ydF59tK#ttY9_9?}mZ{+*4&d2s5Fldq{NeA^!4Xo01LAO|TpC2YZoh~OtqxW= z?ni39#nl|USm|(Y9Ej=T%;Y9Lg#q#6XIC|Y1V3uHZ&8w2ZF7iX#Q~?MpF4j}YdH?( zex3cumW3lfj;gC9G4*c(>EocT`jC(OclI(Ex4Mduzn$Cg^o)ty6-yUs^-DtpQMs^1Ebo zpA{IoMSq+XrV^OS%@gVqFp$tZI5gOtaG@?-)v?jCDCb!}eMz7eL!U8$@w*!m({x}Y zd6B`Fnto9eK9k@c_k149b~#Y-ovnidjh|q#V;X`NH-$GXBTCg^cfkIWSms+XVwv;e zc2!rmLdvIVTt4AP6d=nLB2vI}gv{p?rieHgWjln!FfEqTxWlsAyMdQvOO}i0RO(%M zada#Way5G(jk|#H?dNqQxou`6i*DqKIJWxYHt=}`7vyCqo6;!Y(pDoHZS|3(=~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k59IuAKO0y56PV%x0{Mfceq&Xz!_m`fPxPvF_Pd7Obg z=XPP@-2F)FU*q0RR*#9xtyT)DbhZ%fyisQ3uJ;|Su8#I5rwx46)l*YE6)lxp97aHC zmu`f6=`ym`-2^%I$?EWH)Sd3CbqUDD$K5!^geTJtqi*vS=@gUxMCgEgN$^*4z6P}u z>j)`1;dIX^8QEN?mVuAmjdn?bzNO(P`S?iFf}Y%I8oj|cGQx5T=Y!pH&^D8 z3uoZ{hHveFQOQz|Y zKu9A05zL#D^?wTtrkdo; z{FfUh35NgWgF=yiG05MOU=pyu&q^Two1y2t~2z*LbCFbJxwqymG25HJ-a42p!S!J#lP9HuIXgv-hNzYZI6 dIXUuxKnMT8P=Du#}RbP$#KLBT^3=jYS diff --git a/zlib.h b/zlib.h index 25535f9..699630c 100644 --- a/zlib.h +++ b/zlib.h @@ -1,5 +1,5 @@ /* zlib.h -- interface of the 'zlib' general purpose compression library - version 1.2.4.2, April 9th, 2010 + version 1.2.4.3, April 10th, 2010 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler @@ -37,12 +37,12 @@ extern "C" { #endif -#define ZLIB_VERSION "1.2.4.2" -#define ZLIB_VERNUM 0x1241 +#define ZLIB_VERSION "1.2.4.3" +#define ZLIB_VERNUM 0x1243 #define ZLIB_VER_MAJOR 1 #define ZLIB_VER_MINOR 2 #define ZLIB_VER_REVISION 4 -#define ZLIB_VER_SUBREVISION 2 +#define ZLIB_VER_SUBREVISION 3 /* The 'zlib' compression library provides in-memory compression and @@ -1556,29 +1556,35 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, inflateBackInit_((strm), (windowBits), (window), \ ZLIB_VERSION, sizeof(z_stream)) -#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE +/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or + * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if + * both are true, the application gets the *64 functions, and the regular + * functions are changed to 64 bits) -- in case these are set on systems + * without large file support, _LFS64_LARGEFILE must also be true + */ +#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); - ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int)); - ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile)); - ZEXTERN off64_t ZEXPORT gzoffset64 OF((gzFile)); - ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t)); - ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t)); + ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); + ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); + ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); + ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); + ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); #endif -#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS+0 == 64 && _LFS64_LARGEFILE +#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 # define gzopen gzopen64 # define gzseek gzseek64 # define gztell gztell64 # define gzoffset gzoffset64 # define adler32_combine adler32_combine64 # define crc32_combine crc32_combine64 -# if _LARGEFILE64_SOURCE +# ifdef _LARGEFILE64_SOURCE ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); - ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); - ZEXTERN off_t ZEXPORT gztell64 OF((gzFile)); - ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile)); - ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t)); - ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t)); + ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); + ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); + ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); + ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); + ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); # endif #else ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); @@ -1589,10 +1595,12 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); #endif +/* hack for buggy compilers */ #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) - struct internal_state {int dummy;}; /* hack for buggy compilers */ + struct internal_state {int dummy;}; #endif +/* undocumented functions */ ZEXTERN const char * ZEXPORT zError OF((int)); ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); diff --git a/zutil.h b/zutil.h index 850f1ec..a250088 100644 --- a/zutil.h +++ b/zutil.h @@ -154,14 +154,8 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ #pragma warn -8066 #endif -#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE -# define z_off64_t off64_t -#else -# define z_off64_t z_off_t -#endif - /* provide prototypes for these when building zlib without LFS */ -#if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 +#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); #endif -- GitLab