2 * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc.
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
13 #if ZLIB_VERNUM <= 0x1240
14 ZEXTERN
int ZEXPORT gzclose_r
OF((gzFile file
));
15 ZEXTERN
int ZEXPORT gzclose_w
OF((gzFile file
));
16 ZEXTERN
int ZEXPORT gzbuffer
OF((gzFile file
, unsigned size
));
17 ZEXTERN z_off_t ZEXPORT gzoffset
OF((gzFile file
));
19 #if !defined(_WIN32) && defined(Z_LARGE64)
20 # define z_off64_t off64_t
22 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
23 # define z_off64_t __int64
25 # define z_off64_t z_off_t
31 #if ZLIB_VERNUM <= 0x1250
40 #if ZLIB_VERNUM <= 0x1270
41 #if defined(_WIN32) && !defined(Z_SOLO)
42 # include <stddef.h> /* for wchar_t */
43 ZEXTERN gzFile ZEXPORT gzopen_w
OF((const wchar_t *path
,
49 #if ZLIB_VERNUM < 0x12B0
51 typedef unsigned long z_size_t
;
53 # define z_longlong long long
54 # if defined(NO_SIZE_T)
55 typedef unsigned NO_SIZE_T z_size_t
;
58 typedef size_t z_size_t
;
60 typedef unsigned long z_size_t
;
64 ZEXTERN z_size_t ZEXPORT gzfread
OF((voidp buf
, z_size_t size
, z_size_t nitems
,
66 ZEXTERN z_size_t ZEXPORT gzfwrite
OF((voidpc buf
, z_size_t size
,
67 z_size_t nitems
, gzFile file
));