Commit Graph

19 Commits

Author SHA1 Message Date
Mark Adler
4fe59efbe0 zlib 1.3.1
madler/zlib#51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
2024-02-07 19:15:56 +01:00
Nathan Moinvaziri
fa9bfeddcf Use named defines instead of hard coded numbers. 2023-02-18 20:30:55 +01:00
Mika Lindqvist
ff9162c1a0 In compatibility mode, always define z_crc_t as uint32_t for backwards compatibility. 2022-06-19 13:50:20 +02:00
Hans Kristian Rosbach
2f4e2372a2 Simplify zlib-ng native API by removing version and struct size checks.
This should be backwards compatible with applications compiled for 2.0.x.
2022-06-03 10:21:01 +02:00
Dženan Zukić
714f624d79 Add support for name mangling
This is useful when zlib-ng is embedded into another library,
such as ITK: https://itk.org/

Closes #1025.

Co-authored-by: Mika Lindqvist <postmaster@raasu.org>
2021-10-09 09:19:55 +02:00
Hans Kristian Rosbach
40a12fe994 Change requested compiler standard to C11 2021-06-18 09:24:35 +02:00
Nathan Moinvaziri
1f10aa4e29 Rename ZEXPORT and ZEXTERN for consistency. 2020-08-31 12:33:16 +02:00
Nathan Moinvaziri
7cffba4dd6 Rename ZLIB_INTERNAL to Z_INTERNAL for consistency. 2020-08-31 12:33:16 +02:00
Mika Lindqvist
28e5e73f34
Reintroduce support for ZLIB_CONST in compat mode. (#704)
* Reintroduce support for ZLIB_CONST in compat mode.
2020-08-23 09:58:57 +02:00
Don
c5dd84bd3b Determine whether platform supports dll declspec
Clang contains __has_declspec_attribute for MSVC compatibility. This can be
used to determine whether __declspec is available. Use this to determine if
dllimport/dllexport should be used when exporting the zlib API.
2020-06-24 11:48:53 +02:00
Dan Kegel
280f379629 cmake: generate same zconf.h as configure
Also make comment in zconf.h less configure-specific
2020-06-19 10:14:35 +02:00
Don
d0ac4929f0 Remove Borland C++ compiler references
There are a few guards checking for Borland C++ 5.0 or greater which was released
in 1996. While there is still a descendent of this compiler in Embarcadero C++ Builder
its value for __BORLANDC__ is greater than 0x500 so it is safe to remove these guards.
2020-06-16 15:58:04 +02:00
Pavel P
6dfff29c01 Clean up windows defines, use _WIN32
+ replaced WIN32 with _WIN32
 + removed unused WINDOWS/_WINDOWS defines
 + no need to test for __MINGW__, as _WIN32 is also defined
2020-06-08 15:09:17 +02:00
Pavel P
762068fdc6 Remove cvs keywords 2020-03-17 15:26:47 +01:00
Sebastian Pop
966fdc372c typedef ptrdiff_t when stddef.h does not provide it 2019-01-17 08:55:02 +01:00
Sebastian Pop
10c4c68e5c remove unused configure check for HAVE_STDARG_H 2019-01-09 15:41:01 +01:00
Mika Lindqvist
df1fd1567f Move private defines from zconf.h and zconf-ng.h to zbuild.h
* move definition of z_size_t to zbuild.h
2018-03-22 10:18:27 +01:00
Mika Lindqvist
aff0fc6e3c Adapt code to support PREFIX macros and update build scripts 2018-01-31 10:45:29 +01:00
Hans Kristian Rosbach
4408564a27 Copy zconf.h.in to zconf-ng.h.in and add relevant processing in
configure and CMakeLists.txt
2018-01-31 10:45:29 +01:00