summaryrefslogtreecommitdiff
path: root/zconf.h.in
Commit message (Collapse)AuthorAgeFilesLines
* Don't try to include unistd.h on Windows with LLVM.Mark Adler2022-10-091-3/+10
|
* Add new crc32 functions to z_ prefix defines.Mark Adler2022-10-051-0/+3
|
* Add WIN32_LEAN_AND_MEAN for windows.h include.Mark Adler2022-10-051-0/+3
|
* zlib 1.2.9v1.2.9Mark Adler2016-12-311-4/+12
|
* Make z_size_t unsigned long for non-standard C.Mark Adler2016-12-311-3/+7
| | | | Also declare z_size_t when compiling solo.
* Avoid the need for ssize_t.Mark Adler2016-12-311-11/+0
| | | | | | | | Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int.
* Use intptr_t for z_ssize_t on MSVC.Mark Adler2016-12-301-1/+6
|
* Fix init macros to use z_ prefix when requested.Mark Adler2016-12-301-1/+6
|
* Fix compile option for when z_size_t needs to be a long long.Mark Adler2016-12-041-0/+2
|
* Create z_size_t and z_ssize_t types.Mark Adler2016-12-041-0/+15
| | | | | | Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed.
* Minor edits to the documentation in source file contents.Mark Adler2016-12-041-1/+1
|
* Remove dummy structure declarations for old buggy compilers.Mark Adler2016-09-211-5/+0
| | | | | | | | | | | | | | While woolly mammoths still roamed the Earth and before Atlantis sunk into the ocean, there were C compilers that could not handle forward structure references, e.g. "struct name;". zlib dutifully provided a work-around for such compilers. That work-around is no longer needed, and, per the recommendation of a security audit of the zlib code by Trail of Bits and TrustInSoft, in support of the Mozilla Foundation, should be removed since what a compiler will do with this is technically undefined. From the report: "there is no telling what interactions the bug could have in the future with link-time optimizations and type-based alias analyses, both features that are present (but not default) in clang."
* Do not force Z_CONST for C++.Mark Adler2013-04-281-1/+1
| | | | | | Forcing Z_CONST resulted in an issue when compiling Firefox. Now if someone wants to compile zlib as C++ code (which it isn't), now they will need to #define Z_CONST themselves.
* Change check for a four-byte type back to hexadecimal.Mark Adler2013-04-131-3/+3
|
* zlib 1.2.7.1v1.2.7.1Mark Adler2013-03-241-1/+1
|
* Add casts and consts to ease user conversion to C++.Mark Adler2013-03-241-1/+1
| | | | You would still need to run zlib2ansi on all of the *.c files.
* Clean up the addition of gzvprintf.Mark Adler2013-03-231-0/+1
|
* Remove runtime check in configure for four-byte integer type.Mark Adler2013-03-231-11/+5
| | | | | | | | | | That didn't work when cross-compiling. Simply rely on limits.h. If a compiler does not have limits.h, then zconf.h.in should be modified to define Z_U4 as an unsiged four-byte integer type in order for crc32() to be fast. This also simplifies and makes more portable to check for a four- byte type using limits.h.
* Add gzvprintf() as an undocumented function in zlib.Mark Adler2013-03-221-0/+6
| | | | The function is only available if stdarg.h is available.
* Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.Mark Adler2013-02-241-2/+2
|
* Add _tr_flush_bits to the external symbols prefixed by --zprefix.Mark Adler2013-02-231-0/+1
|
* Add inflateGetDictionary() function.Mark Adler2012-05-261-0/+1
|
* Avoid including stddef.h on Windows for Z_SOLO compile [Niessink].Mark Adler2012-05-031-1/+3
|
* Fix type mismatch between get_crc_table() and crc_table.Mark Adler2012-04-291-0/+23
| | | | | | | | | | | | | crc_table is made using a four-byte integer (when that can be determined). However get_crc_table() returned a pointer to an unsigned long, which could be eight bytes. This fixes that by creating a new z_crc_t type for the crc_table. This type is also used for the BYFOUR crc calculations that depend on a four-byte type. The four-byte type can now be determined by ./configure, which also solves a problem where ./configure --solo would never use BYFOUR. No the Z_U4 #define indicates that four- byte integer was found either by ./configure or by zconf.h.
* More fixes for gzopen_w().Mark Adler2012-03-181-0/+4
| | | | | | Also need to #include <stddef.h> for zlib.h, and need to workaround the inability to use wide characters in constructed error messages with zlib's interface.
* Add gzopen_w() in Windows for wide character path names.Mark Adler2012-03-161-0/+3
|
* Make sure that unistd.h is included before using _LFS64_LARGEFILE.Mark Adler2012-03-141-14/+16
|
* Repair some damage caused by -Wundef allowance.Mark Adler2012-03-141-5/+5
|
* Allow the use of -Wundef when compiling or using zlib.Mark Adler2012-03-131-6/+14
|
* Avoid using __int64 for gcc or solo compilation.Mark Adler2012-02-201-3/+3
|
* Use __WATCOMC__ instead of __WATCOM__.Mark Adler2012-02-181-1/+1
|
* Include unistd.h for Watcom C.Mark Adler2012-02-181-0/+3
|
* Restore gzgetc_ for backward compatibility with 1.2.6.Mark Adler2012-02-181-0/+1
|
* Expunge gzgetc_ from configuration files.Mark Adler2012-02-131-1/+0
|
* zlib 1.2.6.1v1.2.6.1Mark Adler2012-02-121-1/+1
|
* Put gzflags() functionality back in zutil.c.Mark Adler2012-02-011-1/+0
| | | | | | | | | | gzflags() was put in gzwrite.c in order to be compiled exactly the same as gzprintf(), so that it was guaranteed to return the correct information. However that causes a static linkage to zlib to bring in many routines that are often not used. All that is required to duplicate the compilation environment of gzprintf() is to include gzguts.h. So that is now done in zutil.c to assure that the correct flags are returned.
* Include gz_header definition when compiling zlib solo.Mark Adler2012-02-011-5/+3
|
* Enable dictionary setting in middle of stream, and keeping the dictionary.Mark Adler2011-12-081-0/+1
| | | | | | | | | | | | | | | | | | | This patch adds the deflateResetKeep() function to retain the sliding window for the next deflate operation, and fixes an inflateResetKeep() problem that came from inflate() not updating the window when the stream completed. This enables constructing and decompressing a series of concatenated deflate streams where each can depend on the history of uncompressed data that precedes it. This generalizes deflateSetDictionary() and inflateSetDictionary() to permit setting the dictionary in the middle of a stream for raw deflate and inflate. This in combination with the Keep functions enables a scheme for updating files block by block with the transmission of compressed data, where blocks are sent with deflateResetKeep() to retain history for better compression, and deflateSetDictionary() is used for blocks already present at the receiver to skip compression but insert that data in the history, again for better compression. The corresponding inflate calls are done on the receiver side.
* Change ON macro to Z_ARG to avoid application conflicts.Mark Adler2011-11-131-3/+3
| | | | | | | Using "ON" was a dumb idea, since it is common to have macros with names like ON and OFF. In fact, defining the OF macro back in 1995 was a bad idea, but now we're stuck with it. Attempts to rename OF to something else breaks many applications.
* Add #define ZLIB_CONST option to use const in the z_stream interface.Mark Adler2011-10-181-0/+6
| | | | | | | | | | This permits compilers to check for the proper treatment of next_in and msg in the z_stream structure. This is an option instead of the default in order to preserve backward compatibility. Some applications make use of the z_stream structure outside of zlib, and perform operations such as free(strm->next_in), which would not be permitted when next_in is const. The #define ZLIB_CONST needs to precede the #include "zlib.h">, in order to make next_in and msg const pointers in the z_stream type.
* Add undocumented inflateResetKeep() function for CAB file decoding.Mark Adler2011-10-071-0/+1
| | | | | | | | The Microsoft CAB file format compresses each block with completed deflate streams that depend on the sliding window history of the previous block in order to decode. inflateResetKeep() does what inflateReset() does, except the sliding window history from the previous inflate operation is retained.
* Add a ./config --solo option to make zlib subset with no libary useMark Adler2011-10-071-46/+60
| | | | | | | | A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
* Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler2011-10-021-8/+2
| | | | | | | | | This also moves some of the same from zconf.h to gzguts.h. A new function, gzflags(), was created to pass the compilation flags related to vsnprintf usage back to zlibCompileFlags() in zutil.c. In the process, various compiler configuration files were updated to include gzflags(), as well as the new gzgetc_() function added when the gzgetc() macro was introduced in a previous patch.
* Always add large file support for windowsTor Lillqvist2011-10-011-1/+5
|
* zlib 1.2.5.1v1.2.5.1Mark Adler2011-09-111-2/+20
|
* zlib 1.2.4.5v1.2.4.5Mark Adler2011-09-091-4/+0
|
* zlib 1.2.4.4v1.2.4.4Mark Adler2011-09-091-1/+11
|
* zlib 1.2.4.3v1.2.4.3Mark Adler2011-09-091-1/+7
|
* zlib 1.2.4.2v1.2.4.2Mark Adler2011-09-091-1/+4
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-5/+2
|