1
0
mirror of https://github.com/madler/zlib synced 2025-03-28 21:13:15 +00:00

231 Commits

Author SHA1 Message Date
spectralio
0b29118367 Fix Ada bindings on x64. 2025-02-05 21:43:36 -08:00
Vollstrecker
61a56bcbb0 CMake: Make USE_FILE32API part of the interface. 2025-01-31 20:02:26 -08:00
Vollstrecker
4891d8185a CMake: Give minizip a suffix on Cygwin as well. 2025-01-31 20:02:26 -08:00
Vollstrecker
2c62f8885c CMake: Clean up spaces in required versions. 2025-01-31 20:02:26 -08:00
Vollstrecker
5a31e529bc CMake: Add the tested version of cmake (3.31).
Per @ClausKlein suggestion.
2025-01-31 20:02:26 -08:00
Vollstrecker
213998f2b0 CMake: Include bzip2 in the interface. 2025-01-31 20:02:26 -08:00
Vollstrecker
6925d39b50 CMake: Fix typo. 2025-01-31 20:02:26 -08:00
Vollstrecker
8b8a124eb4 CMake: Add cmake-format.yaml and reformat the cmake files. 2025-01-31 20:02:26 -08:00
Vollstrecker
b8ae23d4c8 CMake: Disable bzip2 for tests.
It's not installed everywhere.
2025-01-31 20:02:26 -08:00
Vollstrecker
42a670ec20 CMake: Restore lost variable. 2025-01-31 20:02:26 -08:00
Vollstrecker
10a12ec427 CMake: Correct wording for minizip options. 2025-01-31 20:02:26 -08:00
Vollstrecker
abf7487d6c CMake: Add components selection. 2025-01-31 20:02:26 -08:00
Vollstrecker
e843c631d6 CMake: Refine tests. 2025-01-31 20:02:26 -08:00
Vollstrecker
d51255713b CMake: Do not link to bzip2. 2025-01-31 20:02:26 -08:00
Vollstrecker
8fee881981 CMake: Clean up formatting. 2025-01-31 20:02:26 -08:00
Vollstrecker
5fd63442f9 CMake: Search for zlib by CONFIG to get all needed targets. 2025-01-31 20:02:26 -08:00
Vollstrecker
62b5b4eff8 CMake: Make bzip2 required if it's requested. 2025-01-31 20:02:26 -08:00
Vollstrecker
f42008f5b4 CMake: Avoid double inclusion of CPack warning. 2025-01-31 20:02:26 -08:00
Vollstrecker
15a3751836 CMake: Order the includes consistently. 2025-01-31 20:02:26 -08:00
Vollstrecker
ede311d685 CMake: Make bzip2 optional. 2025-01-31 20:01:41 -08:00
Vollstrecker
373bc1d7c5 CMake: Uncomment stop sign. 2025-01-31 20:01:41 -08:00
Vollstrecker
c99a4ae60f CMake: Depend on bzip2 only if it's found. 2025-01-31 20:01:41 -08:00
Vollstrecker
e573155946 CMake: Add CPack. 2025-01-31 20:01:41 -08:00
Vollstrecker
09b21ebd33 Correct one more comment style in minizip. 2025-01-31 20:01:41 -08:00
Vollstrecker
0263e58ad4 CMake: Prevent a 32-bit minizip build. 2025-01-31 20:01:41 -08:00
Vollstrecker
9d25fa340e Use consistent comment style in minizip. 2025-01-31 20:01:41 -08:00
Vollstrecker
121e4168b9 CMake: Increase CMake version to 3.12 for minizip tests.
And look for ZLIB package.
2025-01-31 20:01:41 -08:00
Werner
99d41ee5c6 CMake: Make minizip search for config. 2025-01-31 19:59:10 -08:00
Werner
dfaf27b0c8 CMake: Change to FindZLIB and ZLIB.cmake. 2025-01-31 19:59:10 -08:00
Werner
5f98365bc9 CMake: Install ints.h for minizip. 2025-01-31 19:59:10 -08:00
Werner
aefb4b5b94 CMake: Rename exports of minizip.
minizip-ng has prior art.
2025-01-31 19:59:10 -08:00
Vollstrecker
5ff476ee43 CMake: Add minizip. 2025-01-31 19:59:10 -08:00
Mark Adler
fff132fe7c Avoid the use of a reserved macro name in contrib/minizip/ioapi.h. 2024-09-01 13:16:26 -07:00
Mark Adler
4cacc3562b Add header file dependencies to contrib/minizip/Makefile. 2024-07-31 22:32:56 -07:00
Mark Adler
be24a8f4ca Avoid use of stdint.h in contrib/minizip. 2024-07-31 22:32:47 -07:00
Mark Adler
e011d8c164 Add deflateUsed() function to get the used bits in the last byte.
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
2024-07-01 19:34:40 -05:00
Mark Adler
7e6f0784cc Remedy conflict between libzip and minizip zip.h.
minizip.pc.in would add @include@/minizip to the include path,
which would permit simply #include <zip.h> to use minizip. However
that conflicts with the zip.h from libzip that is put in the root
include directory. This now does not add /minizip to the include
path. Now when using pkg-config, #include <minizip/zip.h> must be
used, where #include <zip.h> would be used for libzip. This is an
incompatible change with the previous state. Users of minizip and
pkg-config will need to update their code. #include <unzip.h> will
need to be updated to #include <minizip/unzip.h> as well.
2024-06-04 09:36:01 -07:00
Matthieu Longo
1b70083bed Replace autotools macro AC_HELP_STRING with AS_HELP_STRING.
In minizip's configure.ac. AC_HELP_STRING is obsolete.
2024-04-29 18:14:17 -07:00
Lwisce Zeng
2ba25b2dda Use z_const for setting msg to literal strings. 2024-04-01 11:49:05 -07:00
Mark Adler
0f51fb4933 Avert minizip warnings for MSVC. 2024-03-29 12:20:37 -07:00
Mark Adler
d201f04c72 Avoid conversion warning on 32-bit architectures in minizip. 2024-03-22 22:47:36 -07:00
Alexander Miller
f02ea29e5f Improve detection of UNIX-style systems in minizip.
Not all toolchains on UNIX-style operating systems predefine
"unix". For example, it's missing on NetBSD, OpenBSD/gcc, AIX,
HP-UX. There is no single macro defined everywhere, but checking
both "__unix__" and "__unix" should cover everything except macOS,
which is already checked for using "__APPLE__".

Note that case sensitivity should default to off on macOS and
cygwin, so the check there is different.
2024-03-16 11:18:50 -07:00
Mark Adler
99b229487c Avoid signed shift in minizip zip.c. 2024-03-12 13:40:57 -07:00
Mark Adler
f60ce91139 Improve random number seeding in skipset.h. 2024-03-10 23:21:10 -07:00
Mark Adler
4a5e3e7d25 Add zipAlreadyThere() to minizip zip.c to help avoid duplicates. 2024-03-10 00:37:23 -08:00
Mark Adler
54e205f878 Permit changing minizip Makefile optimization with CFLAGS. 2024-03-09 23:53:44 -08:00
Mark Adler
fd5fe8b17e Further address Microsoft deprecation warnings. 2024-02-09 20:11:54 -08:00
Mark Adler
985a62d118 Address Microsoft deprecation warnings. 2024-02-08 18:45:49 -08:00
Justin Dhillon
504403f3e4 Fix broken links. 2024-02-07 15:35:51 -08:00
Mark Adler
b14484997a Fix version numbers in vstudio definition files.
They can only have a major and a minor version.
2024-01-28 12:54:11 -08:00