2 * Copyright (c) 2016-present, Przemyslaw Skibinski, Facebook, Inc.
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
12 #if ZLIB_VERNUM <= 0x1240
13 ZEXTERN int ZEXPORT gzclose_r OF((gzFile file));
14 ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
15 ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
16 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file));
18 #if !defined(_WIN32) && defined(Z_LARGE64)
19 # define z_off64_t off64_t
21 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
22 # define z_off64_t __int64
24 # define z_off64_t z_off_t
30 #if ZLIB_VERNUM <= 0x1250
39 #if ZLIB_VERNUM <= 0x1270
40 #if defined(_WIN32) && !defined(Z_SOLO)
41 # include <stddef.h> /* for wchar_t */
42 ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
48 #if ZLIB_VERNUM < 0x12B0
50 typedef unsigned long z_size_t;
52 # define z_longlong long long
53 # if defined(NO_SIZE_T)
54 typedef unsigned NO_SIZE_T z_size_t;
57 typedef size_t z_size_t;
59 typedef unsigned long z_size_t;
63 ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
65 ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
66 z_size_t nitems, gzFile file));