blob: 7b3f8da43b7c2c908d14763c4bb403607c5274ca [file] [log] [blame]
initial.commit3d533e02008-07-27 00:38:33 +00001/* zconf.h -- configuration of the zlib compression library
mark13dc2462017-02-14 22:15:29 -08002 * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
initial.commit3d533e02008-07-27 00:38:33 +00003 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +00006/* @(#) $Id$ */
initial.commit3d533e02008-07-27 00:38:33 +00007
8#ifndef ZCONF_H
9#define ZCONF_H
10
Haibo Huang774c4202019-08-14 13:58:06 -070011// ANDROID CHNAGE: Upstream chromium renames all the functions; we don't want
12// that.
13#define CHROMIUM_ZLIB_NO_CHROMECONF
14
Leon Scroggins IIIdb18ea32019-06-11 21:12:39 +000015/*
16 * This library is also built as a part of AOSP, which does not need to include
Nico Weber796333a2019-07-25 19:12:00 +000017 * chromeconf.h. This config does not want chromeconf.h, so it can set this
18 * macro to opt out. While this works today, there's no guarantee that building
19 * zlib outside of Chromium keeps working in the future.
Leon Scroggins IIIdb18ea32019-06-11 21:12:39 +000020 */
Nico Weber796333a2019-07-25 19:12:00 +000021#if !defined(CHROMIUM_ZLIB_NO_CHROMECONF)
Tom Anderson20c7ae12019-04-08 20:51:48 +000022/* This include does prefixing as below, but with an updated set of names. Also
23 * sets up export macros in component builds. */
24#include "chromeconf.h"
Leon Scroggins IIIdb18ea32019-06-11 21:12:39 +000025#endif
hbono@chromium.orgcb92c202011-12-13 08:39:06 +000026
initial.commit3d533e02008-07-27 00:38:33 +000027/*
28 * If you *really* need a unique prefix for all types and library functions,
29 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000030 * Even better than compiling with -DZ_PREFIX would be to use configure to set
31 * this permanently in zconf.h using "./configure --zprefix".
initial.commit3d533e02008-07-27 00:38:33 +000032 */
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000033#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
jiadong.zhu6c142162016-06-22 21:22:18 -070034# define Z_PREFIX_SET
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000035
mark13dc2462017-02-14 22:15:29 -080036/* all linked symbols and init macros */
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000037# define _dist_code z__dist_code
38# define _length_code z__length_code
39# define _tr_align z__tr_align
jiadong.zhu6c142162016-06-22 21:22:18 -070040# define _tr_flush_bits z__tr_flush_bits
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000041# define _tr_flush_block z__tr_flush_block
42# define _tr_init z__tr_init
43# define _tr_stored_block z__tr_stored_block
44# define _tr_tally z__tr_tally
45# define adler32 z_adler32
46# define adler32_combine z_adler32_combine
47# define adler32_combine64 z_adler32_combine64
mark13dc2462017-02-14 22:15:29 -080048# define adler32_z z_adler32_z
jiadong.zhu6c142162016-06-22 21:22:18 -070049# ifndef Z_SOLO
50# define compress z_compress
51# define compress2 z_compress2
52# define compressBound z_compressBound
53# endif
initial.commit3d533e02008-07-27 00:38:33 +000054# define crc32 z_crc32
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000055# define crc32_combine z_crc32_combine
56# define crc32_combine64 z_crc32_combine64
mark13dc2462017-02-14 22:15:29 -080057# define crc32_z z_crc32_z
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000058# define deflate z_deflate
59# define deflateBound z_deflateBound
60# define deflateCopy z_deflateCopy
61# define deflateEnd z_deflateEnd
mark13dc2462017-02-14 22:15:29 -080062# define deflateGetDictionary z_deflateGetDictionary
63# define deflateInit z_deflateInit
64# define deflateInit2 z_deflateInit2
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000065# define deflateInit2_ z_deflateInit2_
66# define deflateInit_ z_deflateInit_
67# define deflateParams z_deflateParams
jiadong.zhu6c142162016-06-22 21:22:18 -070068# define deflatePending z_deflatePending
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000069# define deflatePrime z_deflatePrime
70# define deflateReset z_deflateReset
jiadong.zhu6c142162016-06-22 21:22:18 -070071# define deflateResetKeep z_deflateResetKeep
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +000072# define deflateSetDictionary z_deflateSetDictionary
73# define deflateSetHeader z_deflateSetHeader
74# define deflateTune z_deflateTune
75# define deflate_copyright z_deflate_copyright
initial.commit3d533e02008-07-27 00:38:33 +000076# define get_crc_table z_get_crc_table
jiadong.zhu6c142162016-06-22 21:22:18 -070077# ifndef Z_SOLO
78# define gz_error z_gz_error
79# define gz_intmax z_gz_intmax
80# define gz_strwinerror z_gz_strwinerror
81# define gzbuffer z_gzbuffer
82# define gzclearerr z_gzclearerr
83# define gzclose z_gzclose
84# define gzclose_r z_gzclose_r
85# define gzclose_w z_gzclose_w
86# define gzdirect z_gzdirect
87# define gzdopen z_gzdopen
88# define gzeof z_gzeof
89# define gzerror z_gzerror
90# define gzflush z_gzflush
mark13dc2462017-02-14 22:15:29 -080091# define gzfread z_gzfread
92# define gzfwrite z_gzfwrite
jiadong.zhu6c142162016-06-22 21:22:18 -070093# define gzgetc z_gzgetc
94# define gzgetc_ z_gzgetc_
95# define gzgets z_gzgets
96# define gzoffset z_gzoffset
97# define gzoffset64 z_gzoffset64
98# define gzopen z_gzopen
99# define gzopen64 z_gzopen64
100# ifdef _WIN32
101# define gzopen_w z_gzopen_w
102# endif
103# define gzprintf z_gzprintf
jiadong.zhu6c142162016-06-22 21:22:18 -0700104# define gzputc z_gzputc
105# define gzputs z_gzputs
106# define gzread z_gzread
107# define gzrewind z_gzrewind
108# define gzseek z_gzseek
109# define gzseek64 z_gzseek64
110# define gzsetparams z_gzsetparams
111# define gztell z_gztell
112# define gztell64 z_gztell64
113# define gzungetc z_gzungetc
mark13dc2462017-02-14 22:15:29 -0800114# define gzvprintf z_gzvprintf
jiadong.zhu6c142162016-06-22 21:22:18 -0700115# define gzwrite z_gzwrite
116# endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000117# define inflate z_inflate
118# define inflateBack z_inflateBack
119# define inflateBackEnd z_inflateBackEnd
mark13dc2462017-02-14 22:15:29 -0800120# define inflateBackInit z_inflateBackInit
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000121# define inflateBackInit_ z_inflateBackInit_
mark13dc2462017-02-14 22:15:29 -0800122# define inflateCodesUsed z_inflateCodesUsed
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000123# define inflateCopy z_inflateCopy
124# define inflateEnd z_inflateEnd
mark13dc2462017-02-14 22:15:29 -0800125# define inflateGetDictionary z_inflateGetDictionary
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000126# define inflateGetHeader z_inflateGetHeader
mark13dc2462017-02-14 22:15:29 -0800127# define inflateInit z_inflateInit
128# define inflateInit2 z_inflateInit2
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000129# define inflateInit2_ z_inflateInit2_
130# define inflateInit_ z_inflateInit_
131# define inflateMark z_inflateMark
132# define inflatePrime z_inflatePrime
133# define inflateReset z_inflateReset
134# define inflateReset2 z_inflateReset2
mark13dc2462017-02-14 22:15:29 -0800135# define inflateResetKeep z_inflateResetKeep
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000136# define inflateSetDictionary z_inflateSetDictionary
137# define inflateSync z_inflateSync
138# define inflateSyncPoint z_inflateSyncPoint
139# define inflateUndermine z_inflateUndermine
mark13dc2462017-02-14 22:15:29 -0800140# define inflateValidate z_inflateValidate
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000141# define inflate_copyright z_inflate_copyright
142# define inflate_fast z_inflate_fast
143# define inflate_table z_inflate_table
jiadong.zhu6c142162016-06-22 21:22:18 -0700144# ifndef Z_SOLO
145# define uncompress z_uncompress
mark13dc2462017-02-14 22:15:29 -0800146# define uncompress2 z_uncompress2
jiadong.zhu6c142162016-06-22 21:22:18 -0700147# endif
initial.commit3d533e02008-07-27 00:38:33 +0000148# define zError z_zError
jiadong.zhu6c142162016-06-22 21:22:18 -0700149# ifndef Z_SOLO
150# define zcalloc z_zcalloc
151# define zcfree z_zcfree
152# endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000153# define zlibCompileFlags z_zlibCompileFlags
154# define zlibVersion z_zlibVersion
initial.commit3d533e02008-07-27 00:38:33 +0000155
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000156/* all zlib typedefs in zlib.h and zconf.h */
initial.commit3d533e02008-07-27 00:38:33 +0000157# define Byte z_Byte
initial.commit3d533e02008-07-27 00:38:33 +0000158# define Bytef z_Bytef
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000159# define alloc_func z_alloc_func
initial.commit3d533e02008-07-27 00:38:33 +0000160# define charf z_charf
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000161# define free_func z_free_func
jiadong.zhu6c142162016-06-22 21:22:18 -0700162# ifndef Z_SOLO
163# define gzFile z_gzFile
164# endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000165# define gz_header z_gz_header
166# define gz_headerp z_gz_headerp
167# define in_func z_in_func
initial.commit3d533e02008-07-27 00:38:33 +0000168# define intf z_intf
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000169# define out_func z_out_func
170# define uInt z_uInt
initial.commit3d533e02008-07-27 00:38:33 +0000171# define uIntf z_uIntf
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000172# define uLong z_uLong
initial.commit3d533e02008-07-27 00:38:33 +0000173# define uLongf z_uLongf
initial.commit3d533e02008-07-27 00:38:33 +0000174# define voidp z_voidp
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000175# define voidpc z_voidpc
176# define voidpf z_voidpf
177
178/* all zlib structs in zlib.h and zconf.h */
179# define gz_header_s z_gz_header_s
180# define internal_state z_internal_state
181
initial.commit3d533e02008-07-27 00:38:33 +0000182#endif
183
184#if defined(__MSDOS__) && !defined(MSDOS)
185# define MSDOS
186#endif
187#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
188# define OS2
189#endif
190#if defined(_WINDOWS) && !defined(WINDOWS)
191# define WINDOWS
192#endif
193#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
194# ifndef WIN32
195# define WIN32
196# endif
197#endif
198#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
199# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
200# ifndef SYS16BIT
201# define SYS16BIT
202# endif
203# endif
204#endif
205
206/*
207 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
208 * than 64k bytes at a time (needed on systems with 16-bit int).
209 */
210#ifdef SYS16BIT
211# define MAXSEG_64K
212#endif
213#ifdef MSDOS
214# define UNALIGNED_OK
215#endif
216
217#ifdef __STDC_VERSION__
218# ifndef STDC
219# define STDC
220# endif
221# if __STDC_VERSION__ >= 199901L
222# ifndef STDC99
223# define STDC99
224# endif
225# endif
226#endif
227#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
228# define STDC
229#endif
230#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
231# define STDC
232#endif
233#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
234# define STDC
235#endif
236#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
237# define STDC
238#endif
239
240#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
241# define STDC
242#endif
243
244#ifndef STDC
245# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
246# define const /* note: need a more gentle solution here */
247# endif
248#endif
249
jiadong.zhu6c142162016-06-22 21:22:18 -0700250#if defined(ZLIB_CONST) && !defined(z_const)
251# define z_const const
252#else
253# define z_const
254#endif
255
mark13dc2462017-02-14 22:15:29 -0800256#ifdef Z_SOLO
257 typedef unsigned long z_size_t;
258#else
259# define z_longlong long long
260# if defined(NO_SIZE_T)
261 typedef unsigned NO_SIZE_T z_size_t;
262# elif defined(STDC)
263# include <stddef.h>
264 typedef size_t z_size_t;
265# else
266 typedef unsigned long z_size_t;
267# endif
268# undef z_longlong
initial.commit3d533e02008-07-27 00:38:33 +0000269#endif
270
271/* Maximum value for memLevel in deflateInit2 */
272#ifndef MAX_MEM_LEVEL
273# ifdef MAXSEG_64K
274# define MAX_MEM_LEVEL 8
275# else
276# define MAX_MEM_LEVEL 9
277# endif
278#endif
279
280/* Maximum value for windowBits in deflateInit2 and inflateInit2.
281 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
282 * created by gzip. (Files created by minigzip can still be extracted by
283 * gzip.)
284 */
285#ifndef MAX_WBITS
286# define MAX_WBITS 15 /* 32K LZ77 window */
287#endif
288
289/* The memory requirements for deflate are (in bytes):
290 (1 << (windowBits+2)) + (1 << (memLevel+9))
291 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
292 plus a few kilobytes for small objects. For example, if you want to reduce
293 the default memory requirements from 256K to 128K, compile with
294 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
295 Of course this will generally degrade compression (there's no free lunch).
296
297 The memory requirements for inflate are (in bytes) 1 << windowBits
mark13dc2462017-02-14 22:15:29 -0800298 that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
initial.commit3d533e02008-07-27 00:38:33 +0000299 for small objects.
300*/
301
302 /* Type declarations */
303
304#ifndef OF /* function prototypes */
305# ifdef STDC
306# define OF(args) args
307# else
308# define OF(args) ()
309# endif
310#endif
311
jiadong.zhu6c142162016-06-22 21:22:18 -0700312#ifndef Z_ARG /* function prototypes for stdarg */
313# if defined(STDC) || defined(Z_HAVE_STDARG_H)
314# define Z_ARG(args) args
315# else
316# define Z_ARG(args) ()
317# endif
318#endif
319
initial.commit3d533e02008-07-27 00:38:33 +0000320/* The following definitions for FAR are needed only for MSDOS mixed
321 * model programming (small or medium model with some far allocations).
322 * This was tested only with MSC; for other MSDOS compilers you may have
323 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
324 * just define FAR to be empty.
325 */
326#ifdef SYS16BIT
327# if defined(M_I86SM) || defined(M_I86MM)
328 /* MSC small or medium model */
329# define SMALL_MEDIUM
330# ifdef _MSC_VER
331# define FAR _far
332# else
333# define FAR far
334# endif
335# endif
336# if (defined(__SMALL__) || defined(__MEDIUM__))
337 /* Turbo C small or medium model */
338# define SMALL_MEDIUM
339# ifdef __BORLANDC__
340# define FAR _far
341# else
342# define FAR far
343# endif
344# endif
345#endif
346
347#if defined(WINDOWS) || defined(WIN32)
348 /* If building or using zlib as a DLL, define ZLIB_DLL.
349 * This is not mandatory, but it offers a little performance increase.
350 */
351# ifdef ZLIB_DLL
352# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
353# ifdef ZLIB_INTERNAL
354# define ZEXTERN extern __declspec(dllexport)
355# else
356# define ZEXTERN extern __declspec(dllimport)
357# endif
358# endif
359# endif /* ZLIB_DLL */
360 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
361 * define ZLIB_WINAPI.
362 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
363 */
364# ifdef ZLIB_WINAPI
365# ifdef FAR
366# undef FAR
367# endif
368# include <windows.h>
369 /* No need for _export, use ZLIB.DEF instead. */
370 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
371# define ZEXPORT WINAPI
372# ifdef WIN32
373# define ZEXPORTVA WINAPIV
374# else
375# define ZEXPORTVA FAR CDECL
376# endif
377# endif
378#endif
379
380#if defined (__BEOS__)
381# ifdef ZLIB_DLL
382# ifdef ZLIB_INTERNAL
383# define ZEXPORT __declspec(dllexport)
384# define ZEXPORTVA __declspec(dllexport)
385# else
386# define ZEXPORT __declspec(dllimport)
387# define ZEXPORTVA __declspec(dllimport)
388# endif
389# endif
390#endif
391
392#ifndef ZEXTERN
393# define ZEXTERN extern
394#endif
395#ifndef ZEXPORT
396# define ZEXPORT
397#endif
398#ifndef ZEXPORTVA
399# define ZEXPORTVA
400#endif
401
402#ifndef FAR
403# define FAR
404#endif
Daniel Bratellc44fb722018-10-01 11:36:33 +0000405#ifndef far
406# define far
407#endif
initial.commit3d533e02008-07-27 00:38:33 +0000408
409#if !defined(__MACTYPES__)
410typedef unsigned char Byte; /* 8 bits */
411#endif
412typedef unsigned int uInt; /* 16 bits or more */
413typedef unsigned long uLong; /* 32 bits or more */
414
415#ifdef SMALL_MEDIUM
416 /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
417# define Bytef Byte FAR
418#else
419 typedef Byte FAR Bytef;
420#endif
421typedef char FAR charf;
422typedef int FAR intf;
423typedef uInt FAR uIntf;
424typedef uLong FAR uLongf;
425
426#ifdef STDC
427 typedef void const *voidpc;
428 typedef void FAR *voidpf;
429 typedef void *voidp;
430#else
431 typedef Byte const *voidpc;
432 typedef Byte FAR *voidpf;
433 typedef Byte *voidp;
434#endif
435
jiadong.zhu6c142162016-06-22 21:22:18 -0700436#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
437# include <limits.h>
438# if (UINT_MAX == 0xffffffffUL)
439# define Z_U4 unsigned
440# elif (ULONG_MAX == 0xffffffffUL)
441# define Z_U4 unsigned long
442# elif (USHRT_MAX == 0xffffffffUL)
443# define Z_U4 unsigned short
444# endif
445#endif
446
447#ifdef Z_U4
448 typedef Z_U4 z_crc_t;
449#else
450 typedef unsigned long z_crc_t;
451#endif
452
gavinp@chromium.orgc1013302013-04-09 17:15:13 +0000453#if !defined(_WIN32)
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000454# define Z_HAVE_UNISTD_H
initial.commit3d533e02008-07-27 00:38:33 +0000455#endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000456
jiadong.zhu6c142162016-06-22 21:22:18 -0700457#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
458# define Z_HAVE_STDARG_H
459#endif
460
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000461#ifdef STDC
jiadong.zhu6c142162016-06-22 21:22:18 -0700462# ifndef Z_SOLO
463# include <sys/types.h> /* for off_t */
464# endif
465#endif
466
467#if defined(STDC) || defined(Z_HAVE_STDARG_H)
468# ifndef Z_SOLO
469# include <stdarg.h> /* for va_list */
470# endif
471#endif
472
473#ifdef _WIN32
474# ifndef Z_SOLO
475# include <stddef.h> /* for wchar_t */
476# endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000477#endif
478
479/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
480 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
481 * though the former does not conform to the LFS document), but considering
482 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
483 * equivalently requesting no 64-bit operations
484 */
jiadong.zhu6c142162016-06-22 21:22:18 -0700485#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000486# undef _LARGEFILE64_SOURCE
487#endif
488
jiadong.zhu6c142162016-06-22 21:22:18 -0700489#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
490# define Z_HAVE_UNISTD_H
491#endif
492#ifndef Z_SOLO
493# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
494# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
495# ifdef VMS
496# include <unixio.h> /* for off_t */
497# endif
498# ifndef z_off_t
499# define z_off_t off_t
500# endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000501# endif
502#endif
503
jiadong.zhu6c142162016-06-22 21:22:18 -0700504#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
505# define Z_LFS64
506#endif
507
508#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
509# define Z_LARGE64
510#endif
511
512#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
513# define Z_WANT64
514#endif
515
516#if !defined(SEEK_SET) && !defined(Z_SOLO)
initial.commit3d533e02008-07-27 00:38:33 +0000517# define SEEK_SET 0 /* Seek from beginning of file. */
518# define SEEK_CUR 1 /* Seek from current position. */
519# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
520#endif
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000521
initial.commit3d533e02008-07-27 00:38:33 +0000522#ifndef z_off_t
523# define z_off_t long
524#endif
525
jiadong.zhu6c142162016-06-22 21:22:18 -0700526#if !defined(_WIN32) && defined(Z_LARGE64)
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000527# define z_off64_t off64_t
528#else
jiadong.zhu6c142162016-06-22 21:22:18 -0700529# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
530# define z_off64_t __int64
531# else
532# define z_off64_t z_off_t
533# endif
initial.commit3d533e02008-07-27 00:38:33 +0000534#endif
535
536/* MVS linker does not support external names larger than 8 bytes */
537#if defined(__MVS__)
hbono@chromium.orgd2dc2092011-12-12 08:48:38 +0000538 #pragma map(deflateInit_,"DEIN")
539 #pragma map(deflateInit2_,"DEIN2")
540 #pragma map(deflateEnd,"DEEND")
541 #pragma map(deflateBound,"DEBND")
542 #pragma map(inflateInit_,"ININ")
543 #pragma map(inflateInit2_,"ININ2")
544 #pragma map(inflateEnd,"INEND")
545 #pragma map(inflateSync,"INSY")
546 #pragma map(inflateSetDictionary,"INSEDI")
547 #pragma map(compressBound,"CMBND")
548 #pragma map(inflate_table,"INTABL")
549 #pragma map(inflate_fast,"INFA")
550 #pragma map(inflate_copyright,"INCOPY")
initial.commit3d533e02008-07-27 00:38:33 +0000551#endif
552
553#endif /* ZCONF_H */