Vollstrecker
f7ab6e4373
CMake: Add aliases to match the export names.
1 month ago
Vollstrecker
f0175c69e2
CMake: Add INSTALL_INTERFACE for a proper export.
1 month ago
Vollstrecker
633ec87677
CMake: Add zlib1.rc to Cygwin build.
1 month ago
Vollstrecker
48b9ee48ca
CMake: Use CMAKE_DEBUG_POSTFIX for simplification.
1 month ago
Vollstrecker
c33f3bc641
CMake: Move version setting for Cygwin into set_target_properties.
1 month ago
Vollstrecker
b6cb6f4c21
CMake: Rename examples to testing to reflect their intent.
1 month ago
Vollstrecker
c18815b630
CMake: Simplify to one install option.
...
What to install is chosen with components.
1 month ago
Vollstrecker
64e8307d6a
CMake: Make formatting consistent.
1 month ago
Vollstrecker
ffbbe01b6d
CMake: Remove allowance for unclosed constructs.
1 month ago
Vollstrecker
1af1bb6ce4
CMake: Let cmake handle zlib1.rc.
1 month ago
Vollstrecker
899ef97c4a
CMake: Use the same definition we checked for off64_t.
...
Move to target_compile_definitions.
1 month ago
Vollstrecker
31d2462c1d
CMake: Move compile_definitions to the targets.
1 month ago
Vollstrecker
feb7fd325a
CMake: Remove doubled include directories.
1 month ago
Vollstrecker
902f6eedf3
CMake: Remove checks for sys/types.h, stdint.h and stddef.h.
...
This is done by check_type_size.
1 month ago
Vollstrecker
2b2eec69b5
CMake: Remove unneeded renaming for in-tree builds and the option for it.
1 month ago
Vollstrecker
6762467523
CMake: Rename examples and tests to avoid chain building confusion.
1 month ago
Vollstrecker
76c6a8601c
CMake: Set version in project call.
...
Use variables set by it.
1 month ago
Vollstrecker
6628a10f14
CMake: Move versionscript block to zlib definition.
1 month ago
Vollstrecker
7f849d109f
CMake: Bump minimum version.
1 month ago
Vollstrecker
ae5946e5d8
CMake: Add pdb install.
...
Adjust minimum required version for regex.
1 month ago
Vollstrecker
74247f0947
CMake: Install libs with static and debug suffix.
...
Add option to also install zlib1.ddl for compatibility.
1 month ago
Vollstrecker
ee00230f8e
CMake: Switch to GNUInstallDirs.
1 month ago
Vollstrecker
b3907c2cd9
CMake: Add options for shared and static build.
1 month ago
Josh Varga
2359cd3d60
Add Bazel targets.
2 months ago
Mark Adler
71045aef60
Fix indent in infback.c.
2 months ago
Mark Adler
ef24c4c750
Reject invalid MAX_WBITS values at compile time.
4 months ago
AlexisWilke
6d3a66a11a
Avoid attempting to redefine z_const in zconf.h.
5 months ago
Oscar Lesta
64191119d8
Add Haiku to configure for proper LDSHARED settings.
5 months ago
Mark Adler
d476828316
Repair github workflows for their updated macOS runner gcc name.
6 months ago
Mark Adler
f7d01aae6e
Avoid out-of-bounds pointer arithmetic in inflateCopy().
...
Though it does not matter for code correctness, clang's UBSan
injects code that complains about computing a pointer from an array
where the result is out-of-bounds for that array, even though the
pointer is never dereferenced. Go figure. This commit avoids that
possibility when computing distcode in inflateCopy().
6 months ago
Mark Adler
2968a496d9
Remove unneeded dependency on limits.h in examples/zran.c.
6 months ago
Mark Adler
fff132fe7c
Avoid the use of a reserved macro name in contrib/minizip/ioapi.h.
6 months ago
Mark Adler
545f194963
Add old gcc ULONG_LONG_MAX macro to find a 64-bit type in zutil.h.
7 months ago
Mark Adler
4cacc3562b
Add header file dependencies to contrib/minizip/Makefile.
7 months ago
Mark Adler
be24a8f4ca
Avoid use of stdint.h in contrib/minizip.
7 months ago
Mark Adler
164b8e3c9f
Avoid use of uintmax_t in enough.c.
8 months ago
Meiye-lj
3f44e55d5d
Add required gzguts.h dependencies in Makefile.in.
8 months ago
Mark Adler
ceadaf28df
Fix test/infcover.c function prototype when ZLIB_CONST defined.
8 months ago
Mark Adler
3adaa095a7
One more correction for deflateUsed() bits in stored case.
8 months ago
Mark Adler
884e0c0809
Correct used bits from deflateUsed() for deflate_stored() case.
8 months ago
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.
8 months ago
Ram Shanker
534864bccd
Add build folder to .gitignore.
...
A library is usually expected to be built in a folder /build at
its root. Whenever this repository is added as a submodule of
another project and compiled, git shows all the generated files as
changes. To suppress those git messages, this ignores the build
folder.
9 months ago
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.
9 months ago
Mark Adler
0f3b7b9595
Correct typo in zlib.h comment.
10 months ago
Matthieu Longo
1b70083bed
Replace autotools macro AC_HELP_STRING with AS_HELP_STRING.
...
In minizip's configure.ac. AC_HELP_STRING is obsolete.
11 months ago
Lwisce Zeng
2ba25b2dda
Use z_const for setting msg to literal strings.
12 months ago
Mark Adler
c5e87dcdef
Make z_off_t 64 bits by default.
12 months ago
qyt
4f8a17e8cb
Add -fPIC to compiler options for static library build on Android.
12 months ago
Mark Adler
0f51fb4933
Avert minizip warnings for MSVC.
12 months ago
Mark Adler
d201f04c72
Avoid conversion warning on 32-bit architectures in minizip.
12 months ago