diff options
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | Makefile.in | 9 | ||||
-rw-r--r-- | README | 4 | ||||
-rwxr-xr-x | configure | 74 | ||||
-rw-r--r-- | contrib/delphi/ZLib.pas | 2 | ||||
-rw-r--r-- | contrib/dotzlib/DotZLib/UnitTests.cs | 2 | ||||
-rw-r--r-- | contrib/infback9/inftree9.c | 4 | ||||
-rw-r--r-- | contrib/pascal/zlibpas.pas | 2 | ||||
-rw-r--r-- | contrib/vstudio/vc10/zlib.rc | 6 | ||||
-rw-r--r-- | contrib/vstudio/vc9/zlib.rc | 6 | ||||
-rw-r--r-- | deflate.c | 2 | ||||
-rw-r--r-- | inftrees.c | 4 | ||||
-rw-r--r-- | qnx/package.qpg | 10 | ||||
-rw-r--r-- | treebuild.xml | 4 | ||||
-rw-r--r-- | win32/Makefile.gcc | 28 | ||||
-rw-r--r-- | zconf.h | 12 | ||||
-rw-r--r-- | zconf.h.cmakein | 12 | ||||
-rw-r--r-- | zconf.h.in | 12 | ||||
-rw-r--r-- | zlib.3 | 4 | ||||
-rw-r--r-- | zlib.3.pdf | bin | 8681 -> 8680 bytes | |||
-rw-r--r-- | zlib.h | 8 | ||||
-rw-r--r-- | zlib.pc.in | 3 |
22 files changed, 138 insertions, 81 deletions
@@ -1,6 +1,17 @@ | |||
1 | 1 | ||
2 | ChangeLog file for zlib | 2 | ChangeLog file for zlib |
3 | 3 | ||
4 | Changes in 1.2.4.4 (18 Apr 2010) | ||
5 | - Fix CROSS_PREFIX executable testing, CHOST extract, mingw* [Tšršk] | ||
6 | - Undefine _LARGEFILE64_SOURCE in zconf.h if it is zero, but not if empty | ||
7 | - Try to use bash or ksh regardless of functionality of /bin/sh | ||
8 | - Fix configure incompatibility with NetBSD sh | ||
9 | - Remove attempt to run under bash or ksh since have better NetBSD fix | ||
10 | - Fix win32/Makefile.gcc for MinGW [Bar-Lev] | ||
11 | - Add diagnostic messages when using CROSS_PREFIX in configure | ||
12 | - Added --sharedlibdir option to configure [Weigelt] | ||
13 | - Use hidden visibility attribute when available [Frysinger] | ||
14 | |||
4 | Changes in 1.2.4.3 (10 Apr 2010) | 15 | Changes in 1.2.4.3 (10 Apr 2010) |
5 | - Only use CROSS_PREFIX in configure for ar and ranlib if they exist | 16 | - Only use CROSS_PREFIX in configure for ar and ranlib if they exist |
6 | - Use CROSS_PREFIX for nm [Bar-Lev] | 17 | - Use CROSS_PREFIX for nm [Bar-Lev] |
diff --git a/Makefile.in b/Makefile.in index aca5924..f932d9f 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -32,7 +32,7 @@ CPP=$(CC) -E | |||
32 | 32 | ||
33 | STATICLIB=libz.a | 33 | STATICLIB=libz.a |
34 | SHAREDLIB=libz.so | 34 | SHAREDLIB=libz.so |
35 | SHAREDLIBV=libz.so.1.2.4.3 | 35 | SHAREDLIBV=libz.so.1.2.4.4 |
36 | SHAREDLIBM=libz.so.1 | 36 | SHAREDLIBM=libz.so.1 |
37 | LIBS=$(STATICLIB) $(SHAREDLIBV) | 37 | LIBS=$(STATICLIB) $(SHAREDLIBV) |
38 | 38 | ||
@@ -47,6 +47,7 @@ EXE= | |||
47 | prefix = /usr/local | 47 | prefix = /usr/local |
48 | exec_prefix = ${prefix} | 48 | exec_prefix = ${prefix} |
49 | libdir = ${exec_prefix}/lib | 49 | libdir = ${exec_prefix}/lib |
50 | sharedlibdir = ${libdir} | ||
50 | includedir = ${prefix}/include | 51 | includedir = ${prefix}/include |
51 | mandir = ${prefix}/share/man | 52 | mandir = ${prefix}/share/man |
52 | man3dir = ${mandir}/man3 | 53 | man3dir = ${mandir}/man3 |
@@ -163,12 +164,14 @@ minigzip64$(EXE): minigzip64.o $(STATICLIB) | |||
163 | install-libs: $(LIBS) | 164 | install-libs: $(LIBS) |
164 | -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi | 165 | -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi |
165 | -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi | 166 | -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi |
167 | -@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi | ||
166 | -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi | 168 | -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi |
167 | -@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi | 169 | -@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi |
168 | cp $(LIBS) $(DESTDIR)$(libdir) | 170 | cp $(STATICLIB) $(DESTDIR)$(libdir) |
171 | cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) | ||
169 | cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB) | 172 | cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB) |
170 | -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 | 173 | -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 |
171 | -@cd $(DESTDIR)$(libdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ | 174 | -@cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ |
172 | chmod 755 $(SHAREDLIBV); \ | 175 | chmod 755 $(SHAREDLIBV); \ |
173 | rm -f $(SHAREDLIB) $(SHAREDLIBM); \ | 176 | rm -f $(SHAREDLIB) $(SHAREDLIBM); \ |
174 | ln -s $(SHAREDLIBV) $(SHAREDLIB); \ | 177 | ln -s $(SHAREDLIBV) $(SHAREDLIB); \ |
@@ -1,6 +1,6 @@ | |||
1 | ZLIB DATA COMPRESSION LIBRARY | 1 | ZLIB DATA COMPRESSION LIBRARY |
2 | 2 | ||
3 | zlib 1.2.4.3 is a general purpose data compression library. All the code is | 3 | zlib 1.2.4.4 is a general purpose data compression library. All the code is |
4 | thread safe. The data format used by the zlib library is described by RFCs | 4 | thread safe. The data format used by the zlib library is described by RFCs |
5 | (Request for Comments) 1950 to 1952 in the files | 5 | (Request for Comments) 1950 to 1952 in the files |
6 | http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) | 6 | http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) |
@@ -31,7 +31,7 @@ Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997 | |||
31 | issue of Dr. Dobb's Journal; a copy of the article is available at | 31 | issue of Dr. Dobb's Journal; a copy of the article is available at |
32 | http://marknelson.us/1997/01/01/zlib-engine/ . | 32 | http://marknelson.us/1997/01/01/zlib-engine/ . |
33 | 33 | ||
34 | The changes made in version 1.2.4.3 are documented in the file ChangeLog. | 34 | The changes made in version 1.2.4.4 are documented in the file ChangeLog. |
35 | 35 | ||
36 | Unsupported third party contributions are provided in directory contrib/ . | 36 | Unsupported third party contributions are provided in directory contrib/ . |
37 | 37 | ||
@@ -13,37 +13,8 @@ | |||
13 | # If you have problems, try without defining CC and CFLAGS before reporting | 13 | # If you have problems, try without defining CC and CFLAGS before reporting |
14 | # an error. | 14 | # an error. |
15 | 15 | ||
16 | # make sure we are running under a compatible shell (stolen from ffmpeg and libnfo, | ||
17 | # except their's wasn't portable enough due to ! usage, so this is better) | ||
18 | if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then | ||
19 | unset foo | ||
20 | try=0 | ||
21 | (: ${foo%%bar}) 2>/dev/null | ||
22 | if test "$?" -ne 0; then | ||
23 | try=1 | ||
24 | else | ||
25 | (: ${foo?}) 2>/dev/null | ||
26 | if test "$?" -eq 0; then | ||
27 | try=1 | ||
28 | fi | ||
29 | fi | ||
30 | if test "$try" -eq 1; then | ||
31 | ZLIB_CONFIGURE_EXEC=1 | ||
32 | export ZLIB_CONFIGURE_EXEC | ||
33 | type "bash" > /dev/null 2>&1 && exec bash "$0" "$@" | ||
34 | type "ksh" > /dev/null 2>&1 && exec ksh "$0" "$@" | ||
35 | if test -x /usr/xpg4/bin/sh; then | ||
36 | exec /usr/xpg4/bin/sh "$0" "$@" | ||
37 | fi | ||
38 | # echo "No compatible shell script interpreter found." | ||
39 | # exit 1 | ||
40 | # we could give up here, but go ahead and give their old sh a try | ||
41 | fi | ||
42 | unset try | ||
43 | fi | ||
44 | |||
45 | if [ -n "${CHOST}" ]; then | 16 | if [ -n "${CHOST}" ]; then |
46 | uname="$(echo "${CHOST}" | sed 's/.*-.*-\(.*\)-.*/\1/')" | 17 | uname="$(echo "${CHOST}" | sed -e 's/.*-.*-\(.*\)-.*$/\1/' -e 's/.*-\(.*\)-.*/\1/' -e 's/.*-\(.*\)$/\1/')" |
47 | CROSS_PREFIX="${CHOST}-" | 18 | CROSS_PREFIX="${CHOST}-" |
48 | fi | 19 | fi |
49 | 20 | ||
@@ -53,24 +24,28 @@ VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` | |||
53 | VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` | 24 | VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` |
54 | VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` | 25 | VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` |
55 | VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` | 26 | VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` |
56 | if [ -x "${CROSS_PREFIX}ar" ]; then | 27 | if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then |
57 | AR=${AR-"${CROSS_PREFIX}ar"} | 28 | AR=${AR-"${CROSS_PREFIX}ar"} |
29 | test -n "${CROSS_PREFIX}" && echo Using ${AR} | ||
58 | else | 30 | else |
59 | AR=${AR-"ar"} | 31 | AR=${AR-"ar"} |
32 | test -n "${CROSS_PREFIX}" && echo Using ${AR} | ||
60 | fi | 33 | fi |
61 | AR_RC="${AR} rc" | 34 | AR_RC="${AR} rc" |
62 | if [ -x "${CROSS_PREFIX}ranlib" ]; then | 35 | if "${CROSS_PREFIX}ranlib" --version >/dev/null 2>/dev/null || test $? -lt 126; then |
63 | RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} | 36 | RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} |
37 | test -n "${CROSS_PREFIX}" && echo Using ${RANLIB} | ||
64 | else | 38 | else |
65 | RANLIB=${RANLIB-"ranlib"} | 39 | RANLIB=${RANLIB-"ranlib"} |
66 | fi | 40 | fi |
67 | if [ -x "${CROSS_PREFIX}nm" ]; then | 41 | if "${CROSS_PREFIX}nm" --version >/dev/null 2>/dev/null || test $? -lt 126; then |
68 | NM=${NM-"${CROSS_PREFIX}nm"} | 42 | NM=${NM-"${CROSS_PREFIX}nm"} |
43 | test -n "${CROSS_PREFIX}" && echo Using ${NM} | ||
69 | else | 44 | else |
70 | NM=${NM-"nm"} | 45 | NM=${NM-"nm"} |
71 | fi | 46 | fi |
72 | LDCONFIG=${LDCONFIG-"ldconfig"} | 47 | LDCONFIG=${LDCONFIG-"ldconfig"} |
73 | LDSHAREDLIBC="${LDSHAREDLIBC-"-lc"}" | 48 | LDSHAREDLIBC="${LDSHAREDLIBC--lc}" |
74 | prefix=${prefix-/usr/local} | 49 | prefix=${prefix-/usr/local} |
75 | exec_prefix=${exec_prefix-'${prefix}'} | 50 | exec_prefix=${exec_prefix-'${prefix}'} |
76 | libdir=${libdir-'${exec_prefix}/lib'} | 51 | libdir=${libdir-'${exec_prefix}/lib'} |
@@ -90,11 +65,13 @@ case "$1" in | |||
90 | -h* | --help) | 65 | -h* | --help) |
91 | echo 'usage:' | 66 | echo 'usage:' |
92 | echo ' configure [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]' | 67 | echo ' configure [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]' |
93 | echo ' [--static] [--64] [--libdir=LIBDIR] [--includedir=INCLUDEDIR]' | 68 | echo ' [--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]' |
69 | echo ' [--includedir=INCLUDEDIR]' | ||
94 | exit 0 ;; | 70 | exit 0 ;; |
95 | -p*=* | --prefix=*) prefix=`echo $1 | sed 's/.*=//'`; shift ;; | 71 | -p*=* | --prefix=*) prefix=`echo $1 | sed 's/.*=//'`; shift ;; |
96 | -e*=* | --eprefix=*) exec_prefix=`echo $1 | sed 's/.*=//'`; shift ;; | 72 | -e*=* | --eprefix=*) exec_prefix=`echo $1 | sed 's/.*=//'`; shift ;; |
97 | -l*=* | --libdir=*) libdir=`echo $1 | sed 's/.*=//'`; shift ;; | 73 | -l*=* | --libdir=*) libdir=`echo $1 | sed 's/.*=//'`; shift ;; |
74 | --sharedlibdir=*) sharedlibdir=`echo $1 | sed 's/.*=//'`; shift ;; | ||
98 | -i*=* | --includedir=*) includedir=`echo $1 | sed 's/.*=//'`;shift ;; | 75 | -i*=* | --includedir=*) includedir=`echo $1 | sed 's/.*=//'`;shift ;; |
99 | -u*=* | --uname=*) uname=`echo $1 | sed 's/.*=//'`;shift ;; | 76 | -u*=* | --uname=*) uname=`echo $1 | sed 's/.*=//'`;shift ;; |
100 | -p* | --prefix) prefix="$2"; shift; shift ;; | 77 | -p* | --prefix) prefix="$2"; shift; shift ;; |
@@ -117,7 +94,7 @@ extern int getchar(); | |||
117 | int hello() {return getchar();} | 94 | int hello() {return getchar();} |
118 | EOF | 95 | EOF |
119 | 96 | ||
120 | test -z "$CC" && echo Checking for gcc... | 97 | test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... |
121 | cc=${CC-${CROSS_PREFIX}gcc} | 98 | cc=${CC-${CROSS_PREFIX}gcc} |
122 | cflags=${CFLAGS-"-O3"} | 99 | cflags=${CFLAGS-"-O3"} |
123 | # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure | 100 | # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure |
@@ -127,8 +104,8 @@ esac | |||
127 | 104 | ||
128 | if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | 105 | if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then |
129 | CC="$cc" | 106 | CC="$cc" |
130 | SFLAGS="${CFLAGS-"-O3"} -fPIC" | 107 | SFLAGS="${CFLAGS--O3} -fPIC" |
131 | CFLAGS="${CFLAGS-"-O3"}" | 108 | CFLAGS="${CFLAGS--O3}" |
132 | if test $build64 -eq 1; then | 109 | if test $build64 -eq 1; then |
133 | CFLAGS="${CFLAGS} -m64" | 110 | CFLAGS="${CFLAGS} -m64" |
134 | SFLAGS="${SFLAGS} -m64" | 111 | SFLAGS="${SFLAGS} -m64" |
@@ -143,7 +120,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | |||
143 | Linux* | linux* | GNU | GNU/* | *BSD | DragonFly) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; | 120 | Linux* | linux* | GNU | GNU/* | *BSD | DragonFly) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; |
144 | CYGWIN* | Cygwin* | cygwin* | OS/2*) | 121 | CYGWIN* | Cygwin* | cygwin* | OS/2*) |
145 | EXE='.exe' ;; | 122 | EXE='.exe' ;; |
146 | MINGW*) | 123 | MINGW*|mingw*) |
147 | LDSHARED=${LDSHARED-"$cc -shared"} | 124 | LDSHARED=${LDSHARED-"$cc -shared"} |
148 | LDSHAREDLIBC="" | 125 | LDSHAREDLIBC="" |
149 | EXE='.exe' ;; | 126 | EXE='.exe' ;; |
@@ -527,6 +504,23 @@ EOF | |||
527 | fi | 504 | fi |
528 | fi | 505 | fi |
529 | 506 | ||
507 | cat > $test.c <<EOF | ||
508 | int foo __attribute__ ((visibility ("hidden"))); | ||
509 | int main() | ||
510 | { | ||
511 | return 0; | ||
512 | } | ||
513 | EOF | ||
514 | if test "`($CC -c -fvisibility=hidden $CFLAGS $test.c) 2>&1`" = ""; then | ||
515 | CFLAGS="$CFLAGS -fvisibility=hidden" | ||
516 | SFLAGS="$SFLAGS -fvisibility=hidden" | ||
517 | echo "Checking for attribute(visibility) support... Yes." | ||
518 | else | ||
519 | CFLAGS="$CFLAGS -DNO_VIZ" | ||
520 | SFLAGS="$SFLAGS -DNO_VIZ" | ||
521 | echo "Checking for attribute(visibility) support... No." | ||
522 | fi | ||
523 | |||
530 | CPP=${CPP-"$CC -E"} | 524 | CPP=${CPP-"$CC -E"} |
531 | case $CFLAGS in | 525 | case $CFLAGS in |
532 | *ASMV*) | 526 | *ASMV*) |
@@ -560,6 +554,7 @@ sed < Makefile.in " | |||
560 | /^prefix *=/s#=.*#=$prefix# | 554 | /^prefix *=/s#=.*#=$prefix# |
561 | /^exec_prefix *=/s#=.*#=$exec_prefix# | 555 | /^exec_prefix *=/s#=.*#=$exec_prefix# |
562 | /^libdir *=/s#=.*#=$libdir# | 556 | /^libdir *=/s#=.*#=$libdir# |
557 | /^sharedlibdir *=/s#=.*#=$sharedlibdir# | ||
563 | /^includedir *=/s#=.*#=$includedir# | 558 | /^includedir *=/s#=.*#=$includedir# |
564 | /^mandir *=/s#=.*#=$mandir# | 559 | /^mandir *=/s#=.*#=$mandir# |
565 | /^all: */s#:.*#: $ALL# | 560 | /^all: */s#:.*#: $ALL# |
@@ -581,6 +576,7 @@ sed < zlib.pc.in " | |||
581 | /^prefix *=/s#=.*#=$prefix# | 576 | /^prefix *=/s#=.*#=$prefix# |
582 | /^exec_prefix *=/s#=.*#=$exec_prefix# | 577 | /^exec_prefix *=/s#=.*#=$exec_prefix# |
583 | /^libdir *=/s#=.*#=$libdir# | 578 | /^libdir *=/s#=.*#=$libdir# |
579 | /^sharedlibdir *=/s#=.*#=$sharedlibdir# | ||
584 | /^includedir *=/s#=.*#=$includedir# | 580 | /^includedir *=/s#=.*#=$includedir# |
585 | /^mandir *=/s#=.*#=$mandir# | 581 | /^mandir *=/s#=.*#=$mandir# |
586 | /^LDFLAGS *=/s#=.*#=$LDFLAGS# | 582 | /^LDFLAGS *=/s#=.*#=$LDFLAGS# |
diff --git a/contrib/delphi/ZLib.pas b/contrib/delphi/ZLib.pas index 6ed89ce..c1094c6 100644 --- a/contrib/delphi/ZLib.pas +++ b/contrib/delphi/ZLib.pas | |||
@@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; | |||
152 | const OutBuf: Pointer; BufSize: Integer); | 152 | const OutBuf: Pointer; BufSize: Integer); |
153 | 153 | ||
154 | const | 154 | const |
155 | zlib_version = '1.2.4.3'; | 155 | zlib_version = '1.2.4.4'; |
156 | 156 | ||
157 | type | 157 | type |
158 | EZlibError = class(Exception); | 158 | EZlibError = class(Exception); |
diff --git a/contrib/dotzlib/DotZLib/UnitTests.cs b/contrib/dotzlib/DotZLib/UnitTests.cs index 0668c9f..fe1061f 100644 --- a/contrib/dotzlib/DotZLib/UnitTests.cs +++ b/contrib/dotzlib/DotZLib/UnitTests.cs | |||
@@ -156,7 +156,7 @@ namespace DotZLibTests | |||
156 | public void Info_Version() | 156 | public void Info_Version() |
157 | { | 157 | { |
158 | Info info = new Info(); | 158 | Info info = new Info(); |
159 | Assert.AreEqual("1.2.4.3", Info.Version); | 159 | Assert.AreEqual("1.2.4.4", Info.Version); |
160 | Assert.AreEqual(32, info.SizeOfUInt); | 160 | Assert.AreEqual(32, info.SizeOfUInt); |
161 | Assert.AreEqual(32, info.SizeOfULong); | 161 | Assert.AreEqual(32, info.SizeOfULong); |
162 | Assert.AreEqual(32, info.SizeOfPointer); | 162 | Assert.AreEqual(32, info.SizeOfPointer); |
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c index a67f21d..1847d22 100644 --- a/contrib/infback9/inftree9.c +++ b/contrib/infback9/inftree9.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #define MAXBITS 15 | 9 | #define MAXBITS 15 |
10 | 10 | ||
11 | const char inflate9_copyright[] = | 11 | const char inflate9_copyright[] = |
12 | " inflate9 1.2.4.3 Copyright 1995-2010 Mark Adler "; | 12 | " inflate9 1.2.4.4 Copyright 1995-2010 Mark Adler "; |
13 | /* | 13 | /* |
14 | If you use the zlib library in a product, an acknowledgment is welcome | 14 | If you use the zlib library in a product, an acknowledgment is welcome |
15 | in the documentation of your product. If for some reason you cannot | 15 | in the documentation of your product. If for some reason you cannot |
@@ -64,7 +64,7 @@ unsigned short FAR *work; | |||
64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | 64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ |
65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, | 65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, |
66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, | 66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, |
67 | 133, 133, 133, 133, 144, 195, 66}; | 67 | 133, 133, 133, 133, 144, 74, 65}; |
68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ | 68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ |
69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, | 69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, |
70 | 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, | 70 | 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 28383bc..0b2153d 100644 --- a/contrib/pascal/zlibpas.pas +++ b/contrib/pascal/zlibpas.pas | |||
@@ -10,7 +10,7 @@ unit zlibpas; | |||
10 | interface | 10 | interface |
11 | 11 | ||
12 | const | 12 | const |
13 | ZLIB_VERSION = '1.2.4.3'; | 13 | ZLIB_VERSION = '1.2.4.4'; |
14 | 14 | ||
15 | type | 15 | type |
16 | alloc_func = function(opaque: Pointer; items, size: Integer): Pointer; | 16 | alloc_func = function(opaque: Pointer; items, size: Integer): Pointer; |
diff --git a/contrib/vstudio/vc10/zlib.rc b/contrib/vstudio/vc10/zlib.rc index 6d8cd3c..6127143 100644 --- a/contrib/vstudio/vc10/zlib.rc +++ b/contrib/vstudio/vc10/zlib.rc | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | #define IDR_VERSION1 1 | 3 | #define IDR_VERSION1 1 |
4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE |
5 | FILEVERSION 1,2,4,3 | 5 | FILEVERSION 1,2,4,4 |
6 | PRODUCTVERSION 1,2,4,3 | 6 | PRODUCTVERSION 1,2,4,4 |
7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
8 | FILEFLAGS 0 | 8 | FILEFLAGS 0 |
9 | FILEOS VOS_DOS_WINDOWS32 | 9 | FILEOS VOS_DOS_WINDOWS32 |
@@ -17,7 +17,7 @@ BEGIN | |||
17 | 17 | ||
18 | BEGIN | 18 | BEGIN |
19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" | 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" |
20 | VALUE "FileVersion", "1.2.4.3\0" | 20 | VALUE "FileVersion", "1.2.4.4\0" |
21 | VALUE "InternalName", "zlib\0" | 21 | VALUE "InternalName", "zlib\0" |
22 | VALUE "OriginalFilename", "zlib.dll\0" | 22 | VALUE "OriginalFilename", "zlib.dll\0" |
23 | VALUE "ProductName", "ZLib.DLL\0" | 23 | VALUE "ProductName", "ZLib.DLL\0" |
diff --git a/contrib/vstudio/vc9/zlib.rc b/contrib/vstudio/vc9/zlib.rc index 6d8cd3c..6127143 100644 --- a/contrib/vstudio/vc9/zlib.rc +++ b/contrib/vstudio/vc9/zlib.rc | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | #define IDR_VERSION1 1 | 3 | #define IDR_VERSION1 1 |
4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE |
5 | FILEVERSION 1,2,4,3 | 5 | FILEVERSION 1,2,4,4 |
6 | PRODUCTVERSION 1,2,4,3 | 6 | PRODUCTVERSION 1,2,4,4 |
7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
8 | FILEFLAGS 0 | 8 | FILEFLAGS 0 |
9 | FILEOS VOS_DOS_WINDOWS32 | 9 | FILEOS VOS_DOS_WINDOWS32 |
@@ -17,7 +17,7 @@ BEGIN | |||
17 | 17 | ||
18 | BEGIN | 18 | BEGIN |
19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" | 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" |
20 | VALUE "FileVersion", "1.2.4.3\0" | 20 | VALUE "FileVersion", "1.2.4.4\0" |
21 | VALUE "InternalName", "zlib\0" | 21 | VALUE "InternalName", "zlib\0" |
22 | VALUE "OriginalFilename", "zlib.dll\0" | 22 | VALUE "OriginalFilename", "zlib.dll\0" |
23 | VALUE "ProductName", "ZLib.DLL\0" | 23 | VALUE "ProductName", "ZLib.DLL\0" |
@@ -52,7 +52,7 @@ | |||
52 | #include "deflate.h" | 52 | #include "deflate.h" |
53 | 53 | ||
54 | const char deflate_copyright[] = | 54 | const char deflate_copyright[] = |
55 | " deflate 1.2.4.3 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; | 55 | " deflate 1.2.4.4 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; |
56 | /* | 56 | /* |
57 | If you use the zlib library in a product, an acknowledgment is welcome | 57 | If you use the zlib library in a product, an acknowledgment is welcome |
58 | in the documentation of your product. If for some reason you cannot | 58 | in the documentation of your product. If for some reason you cannot |
@@ -9,7 +9,7 @@ | |||
9 | #define MAXBITS 15 | 9 | #define MAXBITS 15 |
10 | 10 | ||
11 | const char inflate_copyright[] = | 11 | const char inflate_copyright[] = |
12 | " inflate 1.2.4.3 Copyright 1995-2010 Mark Adler "; | 12 | " inflate 1.2.4.4 Copyright 1995-2010 Mark Adler "; |
13 | /* | 13 | /* |
14 | If you use the zlib library in a product, an acknowledgment is welcome | 14 | If you use the zlib library in a product, an acknowledgment is welcome |
15 | in the documentation of your product. If for some reason you cannot | 15 | in the documentation of your product. If for some reason you cannot |
@@ -62,7 +62,7 @@ unsigned short FAR *work; | |||
62 | 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; | 62 | 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; |
63 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | 63 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ |
64 | 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, | 64 | 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, |
65 | 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 195, 66}; | 65 | 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 74, 65}; |
66 | static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ | 66 | static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ |
67 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, | 67 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, |
68 | 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, | 68 | 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, |
diff --git a/qnx/package.qpg b/qnx/package.qpg index 55cb3e1..4ee3ad3 100644 --- a/qnx/package.qpg +++ b/qnx/package.qpg | |||
@@ -25,10 +25,10 @@ | |||
25 | <QPG:Files> | 25 | <QPG:Files> |
26 | <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/> | 26 | <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/> |
27 | <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/> | 27 | <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/> |
28 | <QPG:Add file="../libz.so.1.2.4.3" install="/opt/lib/" user="root:bin" permission="644"/> | 28 | <QPG:Add file="../libz.so.1.2.4.4" install="/opt/lib/" user="root:bin" permission="644"/> |
29 | <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.3"/> | 29 | <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.4"/> |
30 | <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.3"/> | 30 | <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.4"/> |
31 | <QPG:Add file="../libz.so.1.2.4.3" install="/opt/lib/" component="slib"/> | 31 | <QPG:Add file="../libz.so.1.2.4.4" install="/opt/lib/" component="slib"/> |
32 | </QPG:Files> | 32 | </QPG:Files> |
33 | 33 | ||
34 | <QPG:PackageFilter> | 34 | <QPG:PackageFilter> |
@@ -63,7 +63,7 @@ | |||
63 | </QPM:ProductDescription> | 63 | </QPM:ProductDescription> |
64 | 64 | ||
65 | <QPM:ReleaseDescription> | 65 | <QPM:ReleaseDescription> |
66 | <QPM:ReleaseVersion>1.2.4.3</QPM:ReleaseVersion> | 66 | <QPM:ReleaseVersion>1.2.4.4</QPM:ReleaseVersion> |
67 | <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> | 67 | <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> |
68 | <QPM:ReleaseStability>Stable</QPM:ReleaseStability> | 68 | <QPM:ReleaseStability>Stable</QPM:ReleaseStability> |
69 | <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor> | 69 | <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor> |
diff --git a/treebuild.xml b/treebuild.xml index 616ed3f..934442f 100644 --- a/treebuild.xml +++ b/treebuild.xml | |||
@@ -1,6 +1,6 @@ | |||
1 | <?xml version="1.0" ?> | 1 | <?xml version="1.0" ?> |
2 | <package name="zlib" version="1.2.4.3"> | 2 | <package name="zlib" version="1.2.4.4"> |
3 | <library name="zlib" dlversion="1.2.4.3" dlname="z"> | 3 | <library name="zlib" dlversion="1.2.4.4" dlname="z"> |
4 | <property name="description"> zip compression library </property> | 4 | <property name="description"> zip compression library </property> |
5 | <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" /> | 5 | <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" /> |
6 | 6 | ||
diff --git a/win32/Makefile.gcc b/win32/Makefile.gcc index 0e16190..93c207d 100644 --- a/win32/Makefile.gcc +++ b/win32/Makefile.gcc | |||
@@ -27,6 +27,11 @@ STATICLIB = libz.a | |||
27 | SHAREDLIB = zlib1.dll | 27 | SHAREDLIB = zlib1.dll |
28 | IMPLIB = libzdll.a | 28 | IMPLIB = libzdll.a |
29 | 29 | ||
30 | # | ||
31 | # Set to 1 if shared object needs to be installed | ||
32 | # | ||
33 | SHARED_MODE=0 | ||
34 | |||
30 | #LOC = -DASMV | 35 | #LOC = -DASMV |
31 | #LOC = -DDEBUG -g | 36 | #LOC = -DDEBUG -g |
32 | 37 | ||
@@ -38,7 +43,7 @@ AS = $(CC) | |||
38 | ASFLAGS = $(LOC) -Wall | 43 | ASFLAGS = $(LOC) -Wall |
39 | 44 | ||
40 | LD = $(CC) | 45 | LD = $(CC) |
41 | LDFLAGS = $(LOC) -s | 46 | LDFLAGS = $(LOC) |
42 | 47 | ||
43 | AR = $(PREFIX)ar | 48 | AR = $(PREFIX)ar |
44 | ARFLAGS = rcs | 49 | ARFLAGS = rcs |
@@ -82,43 +87,54 @@ $(STATICLIB): $(OBJS) $(OBJA) | |||
82 | $(IMPLIB): $(SHAREDLIB) | 87 | $(IMPLIB): $(SHAREDLIB) |
83 | 88 | ||
84 | $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o | 89 | $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o |
85 | $(CC) -shared -Wl,--out-implib,$(IMPLIB) \ | 90 | $(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ |
86 | -o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o | 91 | -o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o |
87 | $(STRIP) $@ | 92 | $(STRIP) $@ |
88 | 93 | ||
89 | example.exe: example.o $(STATICLIB) | 94 | example.exe: example.o $(STATICLIB) |
90 | $(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB) | 95 | $(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB) |
96 | $(STRIP) $@ | ||
91 | 97 | ||
92 | minigzip.exe: minigzip.o $(STATICLIB) | 98 | minigzip.exe: minigzip.o $(STATICLIB) |
93 | $(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB) | 99 | $(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB) |
100 | $(STRIP) $@ | ||
94 | 101 | ||
95 | example_d.exe: example.o $(IMPLIB) | 102 | example_d.exe: example.o $(IMPLIB) |
96 | $(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB) | 103 | $(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB) |
104 | $(STRIP) $@ | ||
97 | 105 | ||
98 | minigzip_d.exe: minigzip.o $(IMPLIB) | 106 | minigzip_d.exe: minigzip.o $(IMPLIB) |
99 | $(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB) | 107 | $(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB) |
108 | $(STRIP) $@ | ||
100 | 109 | ||
101 | zlibrc.o: win32/zlib1.rc | 110 | zlibrc.o: win32/zlib1.rc |
102 | $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc | 111 | $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc |
103 | 112 | ||
104 | 113 | ||
105 | # INCLUDE_PATH and LIBRARY_PATH must be set. | 114 | # BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set. |
106 | 115 | ||
107 | .PHONY: install uninstall clean | 116 | .PHONY: install uninstall clean |
108 | 117 | ||
109 | install: zlib.h zconf.h $(LIB) | 118 | install: zlib.h zconf.h $(STATICLIB) $(IMPLIB) |
119 | -if [ "$(SHARED_MODE)" = "1" ]; then \ | ||
120 | mkdir -p $(BINARY_PATH); \ | ||
121 | $(INSTALL) $(SHAREDLIB) $(BINARY_PATH); \ | ||
122 | $(INSTALL) $(IMPLIB) $(LIBRARY_PATH); \ | ||
123 | fi | ||
110 | -@mkdir -p $(INCLUDE_PATH) | 124 | -@mkdir -p $(INCLUDE_PATH) |
111 | -@mkdir -p $(LIBRARY_PATH) | 125 | -@mkdir -p $(LIBRARY_PATH) |
112 | -$(INSTALL) zlib.h $(INCLUDE_PATH) | 126 | -$(INSTALL) zlib.h $(INCLUDE_PATH) |
113 | -$(INSTALL) zconf.h $(INCLUDE_PATH) | 127 | -$(INSTALL) zconf.h $(INCLUDE_PATH) |
114 | -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH) | 128 | -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH) |
115 | -$(INSTALL) $(IMPLIB) $(LIBRARY_PATH) | ||
116 | 129 | ||
117 | uninstall: | 130 | uninstall: |
131 | -if [ "$(SHARED_MODE)" = "1" ]; then \ | ||
132 | $(RM) $(BINARY_PATH)/$(SHAREDLIB); \ | ||
133 | $(RM) $(LIBRARY_PATH)/$(IMPLIB); \ | ||
134 | fi | ||
118 | -$(RM) $(INCLUDE_PATH)/zlib.h | 135 | -$(RM) $(INCLUDE_PATH)/zlib.h |
119 | -$(RM) $(INCLUDE_PATH)/zconf.h | 136 | -$(RM) $(INCLUDE_PATH)/zconf.h |
120 | -$(RM) $(LIBRARY_PATH)/$(STATICLIB) | 137 | -$(RM) $(LIBRARY_PATH)/$(STATICLIB) |
121 | -$(RM) $(LIBRARY_PATH)/$(IMPLIB) | ||
122 | 138 | ||
123 | clean: | 139 | clean: |
124 | -$(RM) $(STATICLIB) | 140 | -$(RM) $(STATICLIB) |
@@ -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 |
diff --git a/zconf.h.cmakein b/zconf.h.cmakein index cf9cc24..18dd770 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein | |||
@@ -317,7 +317,7 @@ | |||
317 | # endif | 317 | # endif |
318 | #endif | 318 | #endif |
319 | 319 | ||
320 | #ifdef HAVE_VISIBILITY_PRAGMA | 320 | #ifndef NO_VIZ |
321 | # define ZEXTERN __attribute__((visibility ("default"))) extern | 321 | # define ZEXTERN __attribute__((visibility ("default"))) extern |
322 | #endif | 322 | #endif |
323 | 323 | ||
@@ -370,6 +370,16 @@ typedef uLong FAR uLongf; | |||
370 | # include <sys/types.h> /* for off_t */ | 370 | # include <sys/types.h> /* for off_t */ |
371 | #endif | 371 | #endif |
372 | 372 | ||
373 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||
374 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||
375 | * though the former does not conform to the LFS document), but considering | ||
376 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||
377 | * equivalently requesting no 64-bit operations | ||
378 | */ | ||
379 | #if -_LARGEFILE64_SOURCE - -1 == 1 | ||
380 | # undef _LARGEFILE64_SOURCE | ||
381 | #endif | ||
382 | |||
373 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | 383 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) |
374 | # include <unistd.h> /* for SEEK_* and off_t */ | 384 | # include <unistd.h> /* for SEEK_* and off_t */ |
375 | # ifdef VMS | 385 | # ifdef VMS |
@@ -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 |
@@ -1,4 +1,4 @@ | |||
1 | .TH ZLIB 3 "10 Apr 2010" | 1 | .TH ZLIB 3 "18 Apr 2010" |
2 | .SH NAME | 2 | .SH NAME |
3 | zlib \- compression/decompression library | 3 | zlib \- compression/decompression library |
4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
@@ -125,7 +125,7 @@ before asking for help. | |||
125 | Send questions and/or comments to zlib@gzip.org, | 125 | Send questions and/or comments to zlib@gzip.org, |
126 | or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). | 126 | or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). |
127 | .SH AUTHORS | 127 | .SH AUTHORS |
128 | Version 1.2.4.3 | 128 | Version 1.2.4.4 |
129 | Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org) | 129 | Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org) |
130 | and Mark Adler (madler@alumni.caltech.edu). | 130 | and Mark Adler (madler@alumni.caltech.edu). |
131 | .LP | 131 | .LP |
Binary files differ | |||
@@ -1,5 +1,5 @@ | |||
1 | /* zlib.h -- interface of the 'zlib' general purpose compression library | 1 | /* zlib.h -- interface of the 'zlib' general purpose compression library |
2 | version 1.2.4.3, April 10th, 2010 | 2 | version 1.2.4.4, April 18th, 2010 |
3 | 3 | ||
4 | Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler | 4 | Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler |
5 | 5 | ||
@@ -37,12 +37,12 @@ | |||
37 | extern "C" { | 37 | extern "C" { |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #define ZLIB_VERSION "1.2.4.3" | 40 | #define ZLIB_VERSION "1.2.4.4" |
41 | #define ZLIB_VERNUM 0x1243 | 41 | #define ZLIB_VERNUM 0x1244 |
42 | #define ZLIB_VER_MAJOR 1 | 42 | #define ZLIB_VER_MAJOR 1 |
43 | #define ZLIB_VER_MINOR 2 | 43 | #define ZLIB_VER_MINOR 2 |
44 | #define ZLIB_VER_REVISION 4 | 44 | #define ZLIB_VER_REVISION 4 |
45 | #define ZLIB_VER_SUBREVISION 3 | 45 | #define ZLIB_VER_SUBREVISION 4 |
46 | 46 | ||
47 | /* | 47 | /* |
48 | The 'zlib' compression library provides in-memory compression and | 48 | The 'zlib' compression library provides in-memory compression and |
@@ -1,6 +1,7 @@ | |||
1 | prefix=@prefix@ | 1 | prefix=@prefix@ |
2 | exec_prefix=@exec_prefix@ | 2 | exec_prefix=@exec_prefix@ |
3 | libdir=@libdir@ | 3 | libdir=@libdir@ |
4 | sharedlibdir=@sharedlibdir@ | ||
4 | includedir=@includedir@ | 5 | includedir=@includedir@ |
5 | 6 | ||
6 | Name: zlib | 7 | Name: zlib |
@@ -8,5 +9,5 @@ Description: zlib compression library | |||
8 | Version: @VERSION@ | 9 | Version: @VERSION@ |
9 | 10 | ||
10 | Requires: | 11 | Requires: |
11 | Libs: -L${libdir} -lz | 12 | Libs: -L${libdir} -L${sharedlibdir} -lz |
12 | Cflags: -I${includedir} | 13 | Cflags: -I${includedir} |