summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--Makefile2
-rw-r--r--Makefile.in2
-rw-r--r--README4
-rw-r--r--adler32.c34
-rw-r--r--as400/bndsrc2
-rw-r--r--as400/compile.clp2
-rw-r--r--as400/readme.txt2
-rw-r--r--as400/zlib.inc6
-rwxr-xr-xconfigure2
-rw-r--r--contrib/ada/zlib-thin.ads22
-rw-r--r--contrib/delphi/readme.txt2
-rw-r--r--contrib/gzappend/gzappend.c2
-rw-r--r--contrib/infback9/inftree9.c4
-rw-r--r--contrib/pascal/zlibpas.pas1
-rw-r--r--deflate.c2
-rw-r--r--inftrees.c4
-rw-r--r--old/README2
-rw-r--r--qnx/package.qpg10
-rw-r--r--win32/zlib1.rc8
-rw-r--r--zlib.34
-rw-r--r--zlib.h6
-rw-r--r--zutil.h4
23 files changed, 72 insertions, 65 deletions
diff --git a/ChangeLog b/ChangeLog
index e9262ae..48e465f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
1 1
2 ChangeLog file for zlib 2 ChangeLog file for zlib
3 3
4Changes in 1.2.1 (17 November 2003)
5- Remove a tab in contrib/gzappend/gzappend.c
6- Update some interfaces in contrib for new zlib functions
7- Update zlib version number in some contrib entries
8- Add Windows CE definition for ptrdiff_t in zutil.h [Mai, Truta]
9- Support shared libraries on Hurd and KFreeBSD [Brown]
10- Fix error in NO_DIVIDE option of adler32.c
11
4Changes in 1.2.0.8 (4 November 2003) 12Changes in 1.2.0.8 (4 November 2003)
5- Update version in contrib/delphi/ZLib.pas and contrib/pascal/zlibpas.pas 13- Update version in contrib/delphi/ZLib.pas and contrib/pascal/zlibpas.pas
6- Add experimental NO_DIVIDE #define in adler32.c 14- Add experimental NO_DIVIDE #define in adler32.c
@@ -18,7 +26,7 @@ Changes in 1.2.0.8 (4 November 2003)
18- Add -p to mkdir's in Makefile.in [vda] 26- Add -p to mkdir's in Makefile.in [vda]
19- Fix configure to properly detect presence or lack of printf functions 27- Fix configure to properly detect presence or lack of printf functions
20- Add AS400 support [Monnerat] 28- Add AS400 support [Monnerat]
21- Added a little Cygwin support [Wilson] 29- Add a little Cygwin support [Wilson]
22 30
23Changes in 1.2.0.7 (21 September 2003) 31Changes in 1.2.0.7 (21 September 2003)
24- Correct some debug formats in contrib/infback9 32- Correct some debug formats in contrib/infback9
diff --git a/Makefile b/Makefile
index fa4f588..ab4611b 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ CPP=$(CC) -E
30 30
31LIBS=libz.a 31LIBS=libz.a
32SHAREDLIB=libz.so 32SHAREDLIB=libz.so
33SHAREDLIBV=libz.so.1.2.0.8 33SHAREDLIBV=libz.so.1.2.1
34SHAREDLIBM=libz.so.1 34SHAREDLIBM=libz.so.1
35 35
36AR=ar rc 36AR=ar rc
diff --git a/Makefile.in b/Makefile.in
index fa4f588..ab4611b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -30,7 +30,7 @@ CPP=$(CC) -E
30 30
31LIBS=libz.a 31LIBS=libz.a
32SHAREDLIB=libz.so 32SHAREDLIB=libz.so
33SHAREDLIBV=libz.so.1.2.0.8 33SHAREDLIBV=libz.so.1.2.1
34SHAREDLIBM=libz.so.1 34SHAREDLIBM=libz.so.1
35 35
36AR=ar rc 36AR=ar rc
diff --git a/README b/README
index a087104..0f12054 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
1ZLIB DATA COMPRESSION LIBRARY 1ZLIB DATA COMPRESSION LIBRARY
2 2
3zlib 1.2.0.8 is a general purpose data compression library. All the code is 3zlib 1.2.1 is a general purpose data compression library. All the code is
4thread safe. The data format used by the zlib library is described by RFCs 4thread 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
6http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) 6http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
@@ -34,7 +34,7 @@ Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997
34issue of Dr. Dobb's Journal; a copy of the article is available in 34issue of Dr. Dobb's Journal; a copy of the article is available in
35http://dogma.net/markn/articles/zlibtool/zlibtool.htm 35http://dogma.net/markn/articles/zlibtool/zlibtool.htm
36 36
37The changes made in version 1.2.0.8 are documented in the file ChangeLog. 37The changes made in version 1.2.1 are documented in the file ChangeLog.
38 38
39Unsupported third party contributions are provided in directory "contrib". 39Unsupported third party contributions are provided in directory "contrib".
40 40
diff --git a/adler32.c b/adler32.c
index bad930e..624a169 100644
--- a/adler32.c
+++ b/adler32.c
@@ -21,23 +21,23 @@
21#ifdef NO_DIVIDE 21#ifdef NO_DIVIDE
22# define MOD(a) \ 22# define MOD(a) \
23 do { \ 23 do { \
24 if (a > (BASE << 16)) a -= (BASE << 16); \ 24 if (a >= (BASE << 16)) a -= (BASE << 16); \
25 if (a > (BASE << 15)) a -= (BASE << 15); \ 25 if (a >= (BASE << 15)) a -= (BASE << 15); \
26 if (a > (BASE << 14)) a -= (BASE << 14); \ 26 if (a >= (BASE << 14)) a -= (BASE << 14); \
27 if (a > (BASE << 13)) a -= (BASE << 13); \ 27 if (a >= (BASE << 13)) a -= (BASE << 13); \
28 if (a > (BASE << 12)) a -= (BASE << 12); \ 28 if (a >= (BASE << 12)) a -= (BASE << 12); \
29 if (a > (BASE << 11)) a -= (BASE << 11); \ 29 if (a >= (BASE << 11)) a -= (BASE << 11); \
30 if (a > (BASE << 10)) a -= (BASE << 10); \ 30 if (a >= (BASE << 10)) a -= (BASE << 10); \
31 if (a > (BASE << 9)) a -= (BASE << 9); \ 31 if (a >= (BASE << 9)) a -= (BASE << 9); \
32 if (a > (BASE << 8)) a -= (BASE << 8); \ 32 if (a >= (BASE << 8)) a -= (BASE << 8); \
33 if (a > (BASE << 7)) a -= (BASE << 7); \ 33 if (a >= (BASE << 7)) a -= (BASE << 7); \
34 if (a > (BASE << 6)) a -= (BASE << 6); \ 34 if (a >= (BASE << 6)) a -= (BASE << 6); \
35 if (a > (BASE << 5)) a -= (BASE << 5); \ 35 if (a >= (BASE << 5)) a -= (BASE << 5); \
36 if (a > (BASE << 4)) a -= (BASE << 4); \ 36 if (a >= (BASE << 4)) a -= (BASE << 4); \
37 if (a > (BASE << 3)) a -= (BASE << 3); \ 37 if (a >= (BASE << 3)) a -= (BASE << 3); \
38 if (a > (BASE << 2)) a -= (BASE << 2); \ 38 if (a >= (BASE << 2)) a -= (BASE << 2); \
39 if (a > (BASE << 1)) a -= (BASE << 1); \ 39 if (a >= (BASE << 1)) a -= (BASE << 1); \
40 if (a > BASE) a -= BASE; \ 40 if (a >= BASE) a -= BASE; \
41 } while (0) 41 } while (0)
42#else 42#else
43# define MOD(a) a %= BASE 43# define MOD(a) a %= BASE
diff --git a/as400/bndsrc b/as400/bndsrc
index a963e3a..9cf94bb 100644
--- a/as400/bndsrc
+++ b/as400/bndsrc
@@ -87,7 +87,7 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB')
87 EXPORT SYMBOL("zError") 87 EXPORT SYMBOL("zError")
88 88
89/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ 89/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
90/* Version 1.2.0.7 additional entry points. */ 90/* Version 1.2.1 additional entry points. */
91/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ 91/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
92 92
93/********************************************************************/ 93/********************************************************************/
diff --git a/as400/compile.clp b/as400/compile.clp
index 4f8700c..dcd2421 100644
--- a/as400/compile.clp
+++ b/as400/compile.clp
@@ -118,6 +118,6 @@
118 &MODLIB/INFTREES &MODLIB/TREES + 118 &MODLIB/INFTREES &MODLIB/TREES +
119 &MODLIB/UNCOMPR &MODLIB/ZUTIL) + 119 &MODLIB/UNCOMPR &MODLIB/ZUTIL) +
120 SRCFILE(&SRCLIB/&CTLFILE) SRCMBR(BNDSRC) + 120 SRCFILE(&SRCLIB/&CTLFILE) SRCMBR(BNDSRC) +
121 TEXT('ZLIB 1.2.0.7') TGTRLS(V4R4M0) 121 TEXT('ZLIB 1.2.1') TGTRLS(V4R4M0)
122 122
123 ENDPGM 123 ENDPGM
diff --git a/as400/readme.txt b/as400/readme.txt
index 7ce5ed1..eef7cb2 100644
--- a/as400/readme.txt
+++ b/as400/readme.txt
@@ -1,4 +1,4 @@
1 ZLIB version 1.2.0.7 for AS400 installation instructions 1 ZLIB version 1.2.1 for AS400 installation instructions
2 2
3I) From an AS400 *SAVF file: 3I) From an AS400 *SAVF file:
4 4
diff --git a/as400/zlib.inc b/as400/zlib.inc
index 9a0fc54..03c6cf0 100644
--- a/as400/zlib.inc
+++ b/as400/zlib.inc
@@ -1,7 +1,7 @@
1 * ZLIB.INC - Interface to the general purpose compression library 1 * ZLIB.INC - Interface to the general purpose compression library
2 * 2 *
3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE. 3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4 * Version 1.2.0.7 4 * Version 1.2.1
5 * 5 *
6 * 6 *
7 * WARNING: 7 * WARNING:
@@ -20,8 +20,8 @@
20 * Constants 20 * Constants
21 ************************************************************************** 21 **************************************************************************
22 * 22 *
23 D ZLIB_VERSION C '1.2.0.8' Header's version 23 D ZLIB_VERSION C '1.2.1' Header's version
24 D ZLIB_VERNUM C X'1208' 24 D ZLIB_VERNUM C X'1210'
25 * 25 *
26 D Z_NO_FLUSH C 0 26 D Z_NO_FLUSH C 0
27 D Z_SYNC_FLUSH C 2 27 D Z_SYNC_FLUSH C 2
diff --git a/configure b/configure
index 92a5737..d698479 100755
--- a/configure
+++ b/configure
@@ -76,7 +76,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
76 SFLAGS=${CFLAGS-"-fPIC -O3"} 76 SFLAGS=${CFLAGS-"-fPIC -O3"}
77 CFLAGS="$cflags" 77 CFLAGS="$cflags"
78 case `(uname -s || echo unknown) 2>/dev/null` in 78 case `(uname -s || echo unknown) 2>/dev/null` in
79 Linux | linux) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};; 79 Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
80 CYGWIN* | Cygwin* | cygwin* ) 80 CYGWIN* | Cygwin* | cygwin* )
81 EXE='.exe';; 81 EXE='.exe';;
82 QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 82 QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
diff --git a/contrib/ada/zlib-thin.ads b/contrib/ada/zlib-thin.ads
index af1287a..c227374 100644
--- a/contrib/ada/zlib-thin.ads
+++ b/contrib/ada/zlib-thin.ads
@@ -146,17 +146,6 @@ private package ZLib.Thin is
146 strategy : Int) 146 strategy : Int)
147 return Int; -- zlib.h:506 147 return Int; -- zlib.h:506
148 148
149 function deflateBound
150 (strm : Z_Streamp;
151 sourceLen : ULong)
152 return Int; -- zlib.h:595
153
154 function deflatePrime
155 (strm : Z_Streamp;
156 bits : Int;
157 value : Int)
158 return Int; -- zlib.h:604
159
160 function inflateSetDictionary 149 function inflateSetDictionary
161 (strm : Z_Streamp; 150 (strm : Z_Streamp;
162 dictionary : Byte_Access; 151 dictionary : Byte_Access;
@@ -399,6 +388,12 @@ private package ZLib.Thin is
399 388
400 function zlibCompileFlags return ULong; 389 function zlibCompileFlags return ULong;
401 390
391 function deflatePrime
392 (strm : Z_Streamp;
393 bits : Int;
394 value : Int)
395 return Int;
396
402private 397private
403 398
404 type Z_Stream is record -- zlib.h:68 399 type Z_Stream is record -- zlib.h:68
@@ -432,8 +427,6 @@ private
432 pragma Import (C, deflateCopy, "deflateCopy"); 427 pragma Import (C, deflateCopy, "deflateCopy");
433 pragma Import (C, deflateReset, "deflateReset"); 428 pragma Import (C, deflateReset, "deflateReset");
434 pragma Import (C, deflateParams, "deflateParams"); 429 pragma Import (C, deflateParams, "deflateParams");
435 pragma Import (C, deflateBound, "deflateBound");
436 pragma Import (C, deflatePrime, "deflatePrime");
437 pragma Import (C, inflateSetDictionary, "inflateSetDictionary"); 430 pragma Import (C, inflateSetDictionary, "inflateSetDictionary");
438 pragma Import (C, inflateSync, "inflateSync"); 431 pragma Import (C, inflateSync, "inflateSync");
439 pragma Import (C, inflateReset, "inflateReset"); 432 pragma Import (C, inflateReset, "inflateReset");
@@ -467,13 +460,14 @@ private
467 pragma Import (C, inflateSyncPoint, "inflateSyncPoint"); 460 pragma Import (C, inflateSyncPoint, "inflateSyncPoint");
468 pragma Import (C, get_crc_table, "get_crc_table"); 461 pragma Import (C, get_crc_table, "get_crc_table");
469 462
470 -- since zlib 1.2.0: 463 -- added in zlib 1.2.1:
471 464
472 pragma Import (C, inflateCopy, "inflateCopy"); 465 pragma Import (C, inflateCopy, "inflateCopy");
473 pragma Import (C, compressBound, "compressBound"); 466 pragma Import (C, compressBound, "compressBound");
474 pragma Import (C, deflateBound, "deflateBound"); 467 pragma Import (C, deflateBound, "deflateBound");
475 pragma Import (C, gzungetc, "gzungetc"); 468 pragma Import (C, gzungetc, "gzungetc");
476 pragma Import (C, zlibCompileFlags, "zlibCompileFlags"); 469 pragma Import (C, zlibCompileFlags, "zlibCompileFlags");
470 pragma Import (C, deflatePrime, "deflatePrime");
477 471
478 pragma Import (C, inflateBackInit, "inflateBackInit_"); 472 pragma Import (C, inflateBackInit, "inflateBackInit_");
479 473
diff --git a/contrib/delphi/readme.txt b/contrib/delphi/readme.txt
index 65e58b3..2dc9a8b 100644
--- a/contrib/delphi/readme.txt
+++ b/contrib/delphi/readme.txt
@@ -14,7 +14,7 @@ we recommend the users to update their ZLib unit.
14Summary of modifications 14Summary of modifications
15======================== 15========================
16 16
17- Improved makefile, adapted to zlib version 1.2.0. 17- Improved makefile, adapted to zlib version 1.2.1.
18 18
19- Some field types from TZStreamRec are changed from Integer to 19- Some field types from TZStreamRec are changed from Integer to
20 Longint, for consistency with the zlib.h header, and for 64-bit 20 Longint, for consistency with the zlib.h header, and for 64-bit
diff --git a/contrib/gzappend/gzappend.c b/contrib/gzappend/gzappend.c
index f051864..f2e9e4f 100644
--- a/contrib/gzappend/gzappend.c
+++ b/contrib/gzappend/gzappend.c
@@ -167,7 +167,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot)
167/* structure for gzip file read operations */ 167/* structure for gzip file read operations */
168typedef struct { 168typedef struct {
169 int fd; /* file descriptor */ 169 int fd; /* file descriptor */
170 int size; /* 1 << size is bytes in buf */ 170 int size; /* 1 << size is bytes in buf */
171 unsigned left; /* bytes available at next */ 171 unsigned left; /* bytes available at next */
172 unsigned char *buf; /* buffer */ 172 unsigned char *buf; /* buffer */
173 unsigned char *next; /* next byte in buffer */ 173 unsigned char *next; /* next byte in buffer */
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c
index 44ff721..fe76a1b 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
11const char inflate9_copyright[] = 11const char inflate9_copyright[] =
12 " inflate9 1.2.0.8 Copyright 1995-2003 Mark Adler "; 12 " inflate9 1.2.1 Copyright 1995-2003 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, 76, 203}; 67 133, 133, 133, 133, 144, 76, 66};
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 9361914..6d5ebe0 100644
--- a/contrib/pascal/zlibpas.pas
+++ b/contrib/pascal/zlibpas.pas
@@ -166,6 +166,7 @@ function deflateEnd; external;
166function deflateInit_; external; 166function deflateInit_; external;
167function deflateInit2_; external; 167function deflateInit2_; external;
168function deflateParams; external; 168function deflateParams; external;
169function deflatePrime; external;
169function deflateReset; external; 170function deflateReset; external;
170function deflateSetDictionary; external; 171function deflateSetDictionary; external;
171function inflate; external; 172function inflate; external;
diff --git a/deflate.c b/deflate.c
index 9e90a79..0525b2f 100644
--- a/deflate.c
+++ b/deflate.c
@@ -52,7 +52,7 @@
52#include "deflate.h" 52#include "deflate.h"
53 53
54const char deflate_copyright[] = 54const char deflate_copyright[] =
55 " deflate 1.2.0.8 Copyright 1995-2003 Jean-loup Gailly "; 55 " deflate 1.2.1 Copyright 1995-2003 Jean-loup Gailly ";
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
diff --git a/inftrees.c b/inftrees.c
index 40de021..3bb5639 100644
--- a/inftrees.c
+++ b/inftrees.c
@@ -9,7 +9,7 @@
9#define MAXBITS 15 9#define MAXBITS 15
10 10
11const char inflate_copyright[] = 11const char inflate_copyright[] =
12 " inflate 1.2.0.8 Copyright 1995-2003 Mark Adler "; 12 " inflate 1.2.1 Copyright 1995-2003 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, 76, 203}; 65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 76, 66};
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/old/README b/old/README
index e2700df..06ebe3d 100644
--- a/old/README
+++ b/old/README
@@ -1,3 +1,3 @@
1This directory contains files that have not been updated for zlib 1.2. 1This directory contains files that have not been updated for zlib 1.2.1
2 2
3(Volunteers are encouraged to help clean this up. Thanks.) 3(Volunteers are encouraged to help clean this up. Thanks.)
diff --git a/qnx/package.qpg b/qnx/package.qpg
index 69336d9..2b7d951 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.0.8" install="/opt/lib/" user="root:bin" permission="644"/> 28 <QPG:Add file="../libz.so.1.2.1" 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.0.8"/> 29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.1"/>
30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.0.8"/> 30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.1"/>
31 <QPG:Add file="../libz.so.1.2.0.8" install="/opt/lib/" component="slib"/> 31 <QPG:Add file="../libz.so.1.2.1" 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.0.8</QPM:ReleaseVersion> 66 <QPM:ReleaseVersion>1.2.1</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/win32/zlib1.rc b/win32/zlib1.rc
index 09a06f5..326375d 100644
--- a/win32/zlib1.rc
+++ b/win32/zlib1.rc
@@ -5,8 +5,8 @@ VS_VERSION_INFO VERSIONINFO
5#else 5#else
6VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 6VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
7#endif 7#endif
8 FILEVERSION 1,2,0,8 8 FILEVERSION 1,2,1,0
9 PRODUCTVERSION 1,2,0,8 9 PRODUCTVERSION 1,2,1,0
10 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 10 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
11#ifdef _DEBUG 11#ifdef _DEBUG
12 FILEFLAGS 1 12 FILEFLAGS 1
@@ -23,12 +23,12 @@ BEGIN
23 //language ID = U.S. English, char set = Windows, Multilingual 23 //language ID = U.S. English, char set = Windows, Multilingual
24 BEGIN 24 BEGIN
25 VALUE "FileDescription", "zlib data compression library\0" 25 VALUE "FileDescription", "zlib data compression library\0"
26 VALUE "FileVersion", "1.2.0.8\0" 26 VALUE "FileVersion", "1.2.1\0"
27 VALUE "InternalName", "zlib1.dll\0" 27 VALUE "InternalName", "zlib1.dll\0"
28 VALUE "LegalCopyright", "(C) 1995-2003 Jean-loup Gailly & Mark Adler\0" 28 VALUE "LegalCopyright", "(C) 1995-2003 Jean-loup Gailly & Mark Adler\0"
29 VALUE "OriginalFilename", "zlib1.dll\0" 29 VALUE "OriginalFilename", "zlib1.dll\0"
30 VALUE "ProductName", "zlib\0" 30 VALUE "ProductName", "zlib\0"
31 VALUE "ProductVersion", "1.2.0.8\0" 31 VALUE "ProductVersion", "1.2.1\0"
32 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 32 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
33 END 33 END
34 END 34 END
diff --git a/zlib.3 b/zlib.3
index f0c172b..8900984 100644
--- a/zlib.3
+++ b/zlib.3
@@ -1,4 +1,4 @@
1.TH ZLIB 3 "4 November 2003" 1.TH ZLIB 3 "17 November 2003"
2.SH NAME 2.SH NAME
3zlib \- compression/decompression library 3zlib \- compression/decompression library
4.SH SYNOPSIS 4.SH SYNOPSIS
@@ -133,7 +133,7 @@ before asking for help.
133Send questions and/or comments to zlib@gzip.org, 133Send questions and/or comments to zlib@gzip.org,
134or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). 134or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
135.SH AUTHORS 135.SH AUTHORS
136Version 1.2.0.8 136Version 1.2.1
137Copyright (C) 1995-2003 Jean-loup Gailly (jloup@gzip.org) 137Copyright (C) 1995-2003 Jean-loup Gailly (jloup@gzip.org)
138and Mark Adler (madler@alumni.caltech.edu). 138and Mark Adler (madler@alumni.caltech.edu).
139.LP 139.LP
diff --git a/zlib.h b/zlib.h
index 6dc55cd..92edf96 100644
--- a/zlib.h
+++ b/zlib.h
@@ -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.0.8, November 4th, 2003 2 version 1.2.1, November 17th, 2003
3 3
4 Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler
5 5
@@ -37,8 +37,8 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.0.8" 40#define ZLIB_VERSION "1.2.1"
41#define ZLIB_VERNUM 0x1208 41#define ZLIB_VERNUM 0x1210
42 42
43/* 43/*
44 The 'zlib' compression library provides in-memory compression and 44 The 'zlib' compression library provides in-memory compression and
diff --git a/zutil.h b/zutil.h
index c2c98d9..87b70ac 100644
--- a/zutil.h
+++ b/zutil.h
@@ -139,6 +139,10 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
139#if (defined(_MSC_VER) && (_MSC_VER > 600)) 139#if (defined(_MSC_VER) && (_MSC_VER > 600))
140# if defined(_WIN32_WCE) 140# if defined(_WIN32_WCE)
141# define fdopen(fd,mode) NULL /* No fdopen() */ 141# define fdopen(fd,mode) NULL /* No fdopen() */
142# ifndef _PTRDIFF_T_DEFINED
143 typedef int ptrdiff_t;
144# define _PTRDIFF_T_DEFINED
145# endif
142# else 146# else
143# define fdopen(fd,type) _fdopen(fd,type) 147# define fdopen(fd,type) _fdopen(fd,type)
144# endif 148# endif