summaryrefslogtreecommitdiff
path: root/zconf.h
AgeCommit message (Collapse)Author
2022-05-13Port zlib-ng to the Android platformHEADsugisawa-mr1Danny Lin
- Add Soong blueprint - Add CRC32 fixes - Add NDK mappings All changes were based on the Android fork of Chromium zlib. Change-Id: Icf0f00d95e1534a0f5683cce40679916a464cc12
2015-05-08Move generating zconf.h.cmakein from Makefile.in to CMakeLists.txtMika Lindqvist
* nmake doesn't convert / to \ when file doesn't exist, so use \ explicitly when copying zconf.h.in as zconf.h
2015-05-07Revert "Don't delete SRCDIR/zconf.h when building out of tree"Hans Kristian Rosbach
This reverts commit ff7c02c8a7492ce3f3ab997c26ca737fac57f5d3.
2015-05-05Don't delete SRCDIR/zconf.h when building out of treeDaniel Axtens
This avoids dirtying the source directory when building out of tree Various build changes to make sure this works: - Includes for arch dir specify BUILDDIR before SRCDIR - #include <zconf.h> instead of "zconf.h": that way the include order takes effect. - Insert an #error directive in the original zconf.h that we process out. That way we can be sure we are including the right one when building out of tree. Signed-off-by: Daniel Axtens <dja@axtens.net>
2015-04-26Drop workarounds for WinCE and InterixHans Kristian Rosbach
2014-10-15Remove more workarounds for really old compilershansr
2014-10-15Remove more workarounds for really old compilershansr
2014-10-12Remove workarounds for non-ANSI-C compatible compilers (Part 2)hansr
-Removing usage of OF() definition
2014-10-12Remove workarounds for non-ANSI-C compatible compilers (Part 1)hansr
2014-10-09Remove legacy 16-bit workaroundshansr
2014-10-09Remove FAR definitionhansr
Remove a few leftovers from the legacy OS support removal
2014-10-09Remove code related to older operating systemshansr
2013-04-28Do not force Z_CONST for C++.Mark Adler
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.
2013-04-13Change check for a four-byte type back to hexadecimal.Mark Adler
2013-03-24zlib 1.2.7.1Mark Adler
2013-03-24Add casts and consts to ease user conversion to C++.Mark Adler
You would still need to run zlib2ansi on all of the *.c files.
2013-03-23Clean up the addition of gzvprintf.Mark Adler
2013-03-23Remove runtime check in configure for four-byte integer type.Mark Adler
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.
2013-03-22Add gzvprintf() as an undocumented function in zlib.Mark Adler
The function is only available if stdarg.h is available.
2013-02-24Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.Mark Adler
2013-02-23Add _tr_flush_bits to the external symbols prefixed by --zprefix.Mark Adler
2012-05-26Add inflateGetDictionary() function.Mark Adler
2012-05-03Avoid including stddef.h on Windows for Z_SOLO compile [Niessink].Mark Adler
2012-04-29Fix type mismatch between get_crc_table() and crc_table.Mark Adler
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.
2012-03-18More fixes for gzopen_w().Mark Adler
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.
2012-03-16Add gzopen_w() in Windows for wide character path names.Mark Adler
2012-03-14Make sure that unistd.h is included before using _LFS64_LARGEFILE.Mark Adler
2012-03-14Repair some damage caused by -Wundef allowance.Mark Adler
2012-03-13Allow the use of -Wundef when compiling or using zlib.Mark Adler
2012-02-20Avoid using __int64 for gcc or solo compilation.Mark Adler
2012-02-18Use __WATCOMC__ instead of __WATCOM__.Mark Adler
2012-02-18Include unistd.h for Watcom C.Mark Adler
2012-02-18Restore gzgetc_ for backward compatibility with 1.2.6.Mark Adler
2012-02-13Expunge gzgetc_ from configuration files.Mark Adler
2012-02-12zlib 1.2.6.1Mark Adler
2012-02-01Put gzflags() functionality back in zutil.c.Mark Adler
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.
2012-02-01Include gz_header definition when compiling zlib solo.Mark Adler
2011-12-08Enable dictionary setting in middle of stream, and keeping the dictionary.Mark Adler
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.
2011-11-13Change ON macro to Z_ARG to avoid application conflicts.Mark Adler
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.
2011-10-18Add #define ZLIB_CONST option to use const in the z_stream interface.Mark Adler
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.
2011-10-07Add undocumented inflateResetKeep() function for CAB file decoding.Mark Adler
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.
2011-10-07Add a ./config --solo option to make zlib subset with no libary useMark Adler
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.
2011-10-02Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler
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.
2011-10-01Include zconf.h for windows large file support.Mark Adler
2011-09-11zlib 1.2.5.1Mark Adler
2011-09-09zlib 1.2.4.5Mark Adler
2011-09-09zlib 1.2.4.4Mark Adler
2011-09-09zlib 1.2.4.3Mark Adler
2011-09-09zlib 1.2.4.2Mark Adler
2011-09-09zlib 1.2.4.1Mark Adler