aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-01-04 10:34:44 -0600
committerMark Adler <git@madler.net>2026-01-05 15:03:04 -0600
commit916dc1ac351795c9bf86a3d19c3667b014b9d28e (patch)
tree08efd9aa0c5387fe80c1ce15a9fdb0ca8e29c01c /win32
parentfd366384cf324d750596feb03be44ddf4d1e6acd (diff)
downloadzlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.tar.gz
zlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.tar.bz2
zlib-916dc1ac351795c9bf86a3d19c3667b014b9d28e.zip
Add compressBound_z and deflateBound_z functions for large values.
These take and return size_t integers, instead of unsigned longs, for those platforms with 32-bit longs. This commit also assures that overflows of either integer type results in the maximum value for that type, instead of wrapping to small values.
Diffstat (limited to 'win32')
-rw-r--r--win32/zlib.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/zlib.def b/win32/zlib.def
index 84f6496d..dc44e7c0 100644
--- a/win32/zlib.def
+++ b/win32/zlib.def
@@ -14,6 +14,7 @@ EXPORTS
14 deflateParams 14 deflateParams
15 deflateTune 15 deflateTune
16 deflateBound 16 deflateBound
17 deflateBound_z
17 deflatePending 18 deflatePending
18 deflateUsed 19 deflateUsed
19 deflatePrime 20 deflatePrime
@@ -34,6 +35,7 @@ EXPORTS
34 compress 35 compress
35 compress2 36 compress2
36 compressBound 37 compressBound
38 compressBound_z
37 uncompress 39 uncompress
38 uncompress2 40 uncompress2
39 gzopen 41 gzopen