2017-08-18 23:52:05 +00:00
|
|
|
/*
|
2020-03-26 22:19:05 +00:00
|
|
|
* Copyright (c) 2016-2020, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
|
2016-11-28 12:25:42 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2017-08-18 23:52:05 +00:00
|
|
|
* This source code is licensed under both the BSD-style license (found in the
|
|
|
|
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
|
|
* in the COPYING file in the root directory of this source tree).
|
2017-09-08 07:09:23 +00:00
|
|
|
* You may select, at your option, one of the above-listed licenses.
|
2016-11-28 12:25:42 +00:00
|
|
|
*/
|
|
|
|
|
2016-11-28 13:09:26 +00:00
|
|
|
|
2016-11-28 12:25:42 +00:00
|
|
|
|
|
|
|
#if ZLIB_VERNUM <= 0x1240
|
|
|
|
ZEXTERN int ZEXPORT gzclose_r OF((gzFile file));
|
|
|
|
ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
|
2017-08-18 23:52:05 +00:00
|
|
|
ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
|
2016-11-28 12:25:42 +00:00
|
|
|
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file));
|
2017-08-18 23:52:05 +00:00
|
|
|
|
2016-11-28 12:25:42 +00:00
|
|
|
#if !defined(_WIN32) && defined(Z_LARGE64)
|
|
|
|
# define z_off64_t off64_t
|
|
|
|
#else
|
|
|
|
# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
|
|
|
|
# define z_off64_t __int64
|
|
|
|
# else
|
|
|
|
# define z_off64_t z_off_t
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ZLIB_VERNUM <= 0x1250
|
|
|
|
struct gzFile_s {
|
|
|
|
unsigned have;
|
|
|
|
unsigned char *next;
|
|
|
|
z_off64_t pos;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ZLIB_VERNUM <= 0x1270
|
|
|
|
#if defined(_WIN32) && !defined(Z_SOLO)
|
2017-08-18 23:52:05 +00:00
|
|
|
# include <stddef.h> /* for wchar_t */
|
2016-11-28 12:25:42 +00:00
|
|
|
ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
|
|
|
|
const char *mode));
|
|
|
|
#endif
|
|
|
|
#endif
|
2017-01-18 11:51:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if ZLIB_VERNUM < 0x12B0
|
|
|
|
#ifdef Z_SOLO
|
|
|
|
typedef unsigned long z_size_t;
|
|
|
|
#else
|
|
|
|
# define z_longlong long long
|
|
|
|
# if defined(NO_SIZE_T)
|
|
|
|
typedef unsigned NO_SIZE_T z_size_t;
|
|
|
|
# elif defined(STDC)
|
|
|
|
# include <stddef.h>
|
|
|
|
typedef size_t z_size_t;
|
|
|
|
# else
|
|
|
|
typedef unsigned long z_size_t;
|
|
|
|
# endif
|
|
|
|
# undef z_longlong
|
|
|
|
#endif
|
|
|
|
ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
|
|
|
|
gzFile file));
|
|
|
|
ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
|
|
|
|
z_size_t nitems, gzFile file));
|
|
|
|
#endif
|