summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h44
1 files changed, 26 insertions, 18 deletions
diff --git a/zlib.h b/zlib.h
index 25535f9..699630c 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1,5 +1,5 @@
1/* zlib.h -- interface of the 'zlib' general purpose compression library 1/* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.2.4.2, April 9th, 2010 2 version 1.2.4.3, April 10th, 2010
3 3
4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
5 5
@@ -37,12 +37,12 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.4.2" 40#define ZLIB_VERSION "1.2.4.3"
41#define ZLIB_VERNUM 0x1241 41#define ZLIB_VERNUM 0x1243
42#define ZLIB_VER_MAJOR 1 42#define ZLIB_VER_MAJOR 1
43#define ZLIB_VER_MINOR 2 43#define ZLIB_VER_MINOR 2
44#define ZLIB_VER_REVISION 4 44#define ZLIB_VER_REVISION 4
45#define ZLIB_VER_SUBREVISION 2 45#define ZLIB_VER_SUBREVISION 3
46 46
47/* 47/*
48 The 'zlib' compression library provides in-memory compression and 48 The 'zlib' compression library provides in-memory compression and
@@ -1556,29 +1556,35 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
1556 inflateBackInit_((strm), (windowBits), (window), \ 1556 inflateBackInit_((strm), (windowBits), (window), \
1557 ZLIB_VERSION, sizeof(z_stream)) 1557 ZLIB_VERSION, sizeof(z_stream))
1558 1558
1559#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE 1559/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
1560 * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if
1561 * both are true, the application gets the *64 functions, and the regular
1562 * functions are changed to 64 bits) -- in case these are set on systems
1563 * without large file support, _LFS64_LARGEFILE must also be true
1564 */
1565#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
1560 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1566 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1561 ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int)); 1567 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
1562 ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile)); 1568 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
1563 ZEXTERN off64_t ZEXPORT gzoffset64 OF((gzFile)); 1569 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1564 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t)); 1570 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1565 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t)); 1571 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1566#endif 1572#endif
1567 1573
1568#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS+0 == 64 && _LFS64_LARGEFILE 1574#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
1569# define gzopen gzopen64 1575# define gzopen gzopen64
1570# define gzseek gzseek64 1576# define gzseek gzseek64
1571# define gztell gztell64 1577# define gztell gztell64
1572# define gzoffset gzoffset64 1578# define gzoffset gzoffset64
1573# define adler32_combine adler32_combine64 1579# define adler32_combine adler32_combine64
1574# define crc32_combine crc32_combine64 1580# define crc32_combine crc32_combine64
1575# if _LARGEFILE64_SOURCE 1581# ifdef _LARGEFILE64_SOURCE
1576 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1582 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1577 ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); 1583 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
1578 ZEXTERN off_t ZEXPORT gztell64 OF((gzFile)); 1584 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
1579 ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile)); 1585 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1580 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t)); 1586 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1581 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t)); 1587 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1582# endif 1588# endif
1583#else 1589#else
1584 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); 1590 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
@@ -1589,10 +1595,12 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
1589 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); 1595 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1590#endif 1596#endif
1591 1597
1598/* hack for buggy compilers */
1592#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1599#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1593 struct internal_state {int dummy;}; /* hack for buggy compilers */ 1600 struct internal_state {int dummy;};
1594#endif 1601#endif
1595 1602
1603/* undocumented functions */
1596ZEXTERN const char * ZEXPORT zError OF((int)); 1604ZEXTERN const char * ZEXPORT zError OF((int));
1597ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); 1605ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
1598ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); 1606ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));