kusano fc6ab3
/* zconf.h -- configuration of the zlib compression library
kusano fc6ab3
 * Copyright (C) 1995-2013 Jean-loup Gailly.
kusano fc6ab3
 * For conditions of distribution and use, see copyright notice in zlib.h
kusano fc6ab3
 */
kusano fc6ab3
kusano fc6ab3
/* @(#) $Id$ */
kusano fc6ab3
kusano fc6ab3
#ifndef ZCONF_H
kusano fc6ab3
#define ZCONF_H
kusano fc6ab3
#cmakedefine Z_PREFIX
kusano fc6ab3
#cmakedefine Z_HAVE_UNISTD_H
kusano fc6ab3
kusano fc6ab3
/*
kusano fc6ab3
 * If you *really* need a unique prefix for all types and library functions,
kusano fc6ab3
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
kusano fc6ab3
 * Even better than compiling with -DZ_PREFIX would be to use configure to set
kusano fc6ab3
 * this permanently in zconf.h using "./configure --zprefix".
kusano fc6ab3
 */
kusano fc6ab3
#ifdef Z_PREFIX     /* may be set to #if 1 by ./configure */
kusano fc6ab3
#  define Z_PREFIX_SET
kusano fc6ab3
kusano fc6ab3
/* all linked symbols */
kusano fc6ab3
#  define _dist_code            z__dist_code
kusano fc6ab3
#  define _length_code          z__length_code
kusano fc6ab3
#  define _tr_align             z__tr_align
kusano fc6ab3
#  define _tr_flush_bits        z__tr_flush_bits
kusano fc6ab3
#  define _tr_flush_block       z__tr_flush_block
kusano fc6ab3
#  define _tr_init              z__tr_init
kusano fc6ab3
#  define _tr_stored_block      z__tr_stored_block
kusano fc6ab3
#  define _tr_tally             z__tr_tally
kusano fc6ab3
#  define adler32               z_adler32
kusano fc6ab3
#  define adler32_combine       z_adler32_combine
kusano fc6ab3
#  define adler32_combine64     z_adler32_combine64
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    define compress              z_compress
kusano fc6ab3
#    define compress2             z_compress2
kusano fc6ab3
#    define compressBound         z_compressBound
kusano fc6ab3
#  endif
kusano fc6ab3
#  define crc32                 z_crc32
kusano fc6ab3
#  define crc32_combine         z_crc32_combine
kusano fc6ab3
#  define crc32_combine64       z_crc32_combine64
kusano fc6ab3
#  define deflate               z_deflate
kusano fc6ab3
#  define deflateBound          z_deflateBound
kusano fc6ab3
#  define deflateCopy           z_deflateCopy
kusano fc6ab3
#  define deflateEnd            z_deflateEnd
kusano fc6ab3
#  define deflateInit2_         z_deflateInit2_
kusano fc6ab3
#  define deflateInit_          z_deflateInit_
kusano fc6ab3
#  define deflateParams         z_deflateParams
kusano fc6ab3
#  define deflatePending        z_deflatePending
kusano fc6ab3
#  define deflatePrime          z_deflatePrime
kusano fc6ab3
#  define deflateReset          z_deflateReset
kusano fc6ab3
#  define deflateResetKeep      z_deflateResetKeep
kusano fc6ab3
#  define deflateSetDictionary  z_deflateSetDictionary
kusano fc6ab3
#  define deflateSetHeader      z_deflateSetHeader
kusano fc6ab3
#  define deflateTune           z_deflateTune
kusano fc6ab3
#  define deflate_copyright     z_deflate_copyright
kusano fc6ab3
#  define get_crc_table         z_get_crc_table
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    define gz_error              z_gz_error
kusano fc6ab3
#    define gz_intmax             z_gz_intmax
kusano fc6ab3
#    define gz_strwinerror        z_gz_strwinerror
kusano fc6ab3
#    define gzbuffer              z_gzbuffer
kusano fc6ab3
#    define gzclearerr            z_gzclearerr
kusano fc6ab3
#    define gzclose               z_gzclose
kusano fc6ab3
#    define gzclose_r             z_gzclose_r
kusano fc6ab3
#    define gzclose_w             z_gzclose_w
kusano fc6ab3
#    define gzdirect              z_gzdirect
kusano fc6ab3
#    define gzdopen               z_gzdopen
kusano fc6ab3
#    define gzeof                 z_gzeof
kusano fc6ab3
#    define gzerror               z_gzerror
kusano fc6ab3
#    define gzflush               z_gzflush
kusano fc6ab3
#    define gzgetc                z_gzgetc
kusano fc6ab3
#    define gzgetc_               z_gzgetc_
kusano fc6ab3
#    define gzgets                z_gzgets
kusano fc6ab3
#    define gzoffset              z_gzoffset
kusano fc6ab3
#    define gzoffset64            z_gzoffset64
kusano fc6ab3
#    define gzopen                z_gzopen
kusano fc6ab3
#    define gzopen64              z_gzopen64
kusano fc6ab3
#    ifdef _WIN32
kusano fc6ab3
#      define gzopen_w              z_gzopen_w
kusano fc6ab3
#    endif
kusano fc6ab3
#    define gzprintf              z_gzprintf
kusano fc6ab3
#    define gzvprintf             z_gzvprintf
kusano fc6ab3
#    define gzputc                z_gzputc
kusano fc6ab3
#    define gzputs                z_gzputs
kusano fc6ab3
#    define gzread                z_gzread
kusano fc6ab3
#    define gzrewind              z_gzrewind
kusano fc6ab3
#    define gzseek                z_gzseek
kusano fc6ab3
#    define gzseek64              z_gzseek64
kusano fc6ab3
#    define gzsetparams           z_gzsetparams
kusano fc6ab3
#    define gztell                z_gztell
kusano fc6ab3
#    define gztell64              z_gztell64
kusano fc6ab3
#    define gzungetc              z_gzungetc
kusano fc6ab3
#    define gzwrite               z_gzwrite
kusano fc6ab3
#  endif
kusano fc6ab3
#  define inflate               z_inflate
kusano fc6ab3
#  define inflateBack           z_inflateBack
kusano fc6ab3
#  define inflateBackEnd        z_inflateBackEnd
kusano fc6ab3
#  define inflateBackInit_      z_inflateBackInit_
kusano fc6ab3
#  define inflateCopy           z_inflateCopy
kusano fc6ab3
#  define inflateEnd            z_inflateEnd
kusano fc6ab3
#  define inflateGetHeader      z_inflateGetHeader
kusano fc6ab3
#  define inflateInit2_         z_inflateInit2_
kusano fc6ab3
#  define inflateInit_          z_inflateInit_
kusano fc6ab3
#  define inflateMark           z_inflateMark
kusano fc6ab3
#  define inflatePrime          z_inflatePrime
kusano fc6ab3
#  define inflateReset          z_inflateReset
kusano fc6ab3
#  define inflateReset2         z_inflateReset2
kusano fc6ab3
#  define inflateSetDictionary  z_inflateSetDictionary
kusano fc6ab3
#  define inflateGetDictionary  z_inflateGetDictionary
kusano fc6ab3
#  define inflateSync           z_inflateSync
kusano fc6ab3
#  define inflateSyncPoint      z_inflateSyncPoint
kusano fc6ab3
#  define inflateUndermine      z_inflateUndermine
kusano fc6ab3
#  define inflateResetKeep      z_inflateResetKeep
kusano fc6ab3
#  define inflate_copyright     z_inflate_copyright
kusano fc6ab3
#  define inflate_fast          z_inflate_fast
kusano fc6ab3
#  define inflate_table         z_inflate_table
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    define uncompress            z_uncompress
kusano fc6ab3
#  endif
kusano fc6ab3
#  define zError                z_zError
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    define zcalloc               z_zcalloc
kusano fc6ab3
#    define zcfree                z_zcfree
kusano fc6ab3
#  endif
kusano fc6ab3
#  define zlibCompileFlags      z_zlibCompileFlags
kusano fc6ab3
#  define zlibVersion           z_zlibVersion
kusano fc6ab3
kusano fc6ab3
/* all zlib typedefs in zlib.h and zconf.h */
kusano fc6ab3
#  define Byte                  z_Byte
kusano fc6ab3
#  define Bytef                 z_Bytef
kusano fc6ab3
#  define alloc_func            z_alloc_func
kusano fc6ab3
#  define charf                 z_charf
kusano fc6ab3
#  define free_func             z_free_func
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    define gzFile                z_gzFile
kusano fc6ab3
#  endif
kusano fc6ab3
#  define gz_header             z_gz_header
kusano fc6ab3
#  define gz_headerp            z_gz_headerp
kusano fc6ab3
#  define in_func               z_in_func
kusano fc6ab3
#  define intf                  z_intf
kusano fc6ab3
#  define out_func              z_out_func
kusano fc6ab3
#  define uInt                  z_uInt
kusano fc6ab3
#  define uIntf                 z_uIntf
kusano fc6ab3
#  define uLong                 z_uLong
kusano fc6ab3
#  define uLongf                z_uLongf
kusano fc6ab3
#  define voidp                 z_voidp
kusano fc6ab3
#  define voidpc                z_voidpc
kusano fc6ab3
#  define voidpf                z_voidpf
kusano fc6ab3
kusano fc6ab3
/* all zlib structs in zlib.h and zconf.h */
kusano fc6ab3
#  define gz_header_s           z_gz_header_s
kusano fc6ab3
#  define internal_state        z_internal_state
kusano fc6ab3
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(__MSDOS__) && !defined(MSDOS)
kusano fc6ab3
#  define MSDOS
kusano fc6ab3
#endif
kusano fc6ab3
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
kusano fc6ab3
#  define OS2
kusano fc6ab3
#endif
kusano fc6ab3
#if defined(_WINDOWS) && !defined(WINDOWS)
kusano fc6ab3
#  define WINDOWS
kusano fc6ab3
#endif
kusano fc6ab3
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
kusano fc6ab3
#  ifndef WIN32
kusano fc6ab3
#    define WIN32
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
kusano fc6ab3
#  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
kusano fc6ab3
#    ifndef SYS16BIT
kusano fc6ab3
#      define SYS16BIT
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/*
kusano fc6ab3
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
kusano fc6ab3
 * than 64k bytes at a time (needed on systems with 16-bit int).
kusano fc6ab3
 */
kusano fc6ab3
#ifdef SYS16BIT
kusano fc6ab3
#  define MAXSEG_64K
kusano fc6ab3
#endif
kusano fc6ab3
#ifdef MSDOS
kusano fc6ab3
#  define UNALIGNED_OK
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef __STDC_VERSION__
kusano fc6ab3
#  ifndef STDC
kusano fc6ab3
#    define STDC
kusano fc6ab3
#  endif
kusano fc6ab3
#  if __STDC_VERSION__ >= 199901L
kusano fc6ab3
#    ifndef STDC99
kusano fc6ab3
#      define STDC99
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
kusano fc6ab3
#  define STDC
kusano fc6ab3
#endif
kusano fc6ab3
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
kusano fc6ab3
#  define STDC
kusano fc6ab3
#endif
kusano fc6ab3
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
kusano fc6ab3
#  define STDC
kusano fc6ab3
#endif
kusano fc6ab3
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
kusano fc6ab3
#  define STDC
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
kusano fc6ab3
#  define STDC
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef STDC
kusano fc6ab3
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
kusano fc6ab3
#    define const       /* note: need a more gentle solution here */
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(ZLIB_CONST) && !defined(z_const)
kusano fc6ab3
#  define z_const const
kusano fc6ab3
#else
kusano fc6ab3
#  define z_const
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* Some Mac compilers merge all .h files incorrectly: */
kusano fc6ab3
#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
kusano fc6ab3
#  define NO_DUMMY_DECL
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* Maximum value for memLevel in deflateInit2 */
kusano fc6ab3
#ifndef MAX_MEM_LEVEL
kusano fc6ab3
#  ifdef MAXSEG_64K
kusano fc6ab3
#    define MAX_MEM_LEVEL 8
kusano fc6ab3
#  else
kusano fc6ab3
#    define MAX_MEM_LEVEL 9
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
kusano fc6ab3
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
kusano fc6ab3
 * created by gzip. (Files created by minigzip can still be extracted by
kusano fc6ab3
 * gzip.)
kusano fc6ab3
 */
kusano fc6ab3
#ifndef MAX_WBITS
kusano fc6ab3
#  define MAX_WBITS   15 /* 32K LZ77 window */
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* The memory requirements for deflate are (in bytes):
kusano fc6ab3
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
kusano fc6ab3
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
kusano fc6ab3
 plus a few kilobytes for small objects. For example, if you want to reduce
kusano fc6ab3
 the default memory requirements from 256K to 128K, compile with
kusano fc6ab3
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
kusano fc6ab3
 Of course this will generally degrade compression (there's no free lunch).
kusano fc6ab3
kusano fc6ab3
   The memory requirements for inflate are (in bytes) 1 << windowBits
kusano fc6ab3
 that is, 32K for windowBits=15 (default value) plus a few kilobytes
kusano fc6ab3
 for small objects.
kusano fc6ab3
*/
kusano fc6ab3
kusano fc6ab3
                        /* Type declarations */
kusano fc6ab3
kusano fc6ab3
#ifndef OF /* function prototypes */
kusano fc6ab3
#  ifdef STDC
kusano fc6ab3
#    define OF(args)  args
kusano fc6ab3
#  else
kusano fc6ab3
#    define OF(args)  ()
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef Z_ARG /* function prototypes for stdarg */
kusano fc6ab3
#  if defined(STDC) || defined(Z_HAVE_STDARG_H)
kusano fc6ab3
#    define Z_ARG(args)  args
kusano fc6ab3
#  else
kusano fc6ab3
#    define Z_ARG(args)  ()
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* The following definitions for FAR are needed only for MSDOS mixed
kusano fc6ab3
 * model programming (small or medium model with some far allocations).
kusano fc6ab3
 * This was tested only with MSC; for other MSDOS compilers you may have
kusano fc6ab3
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
kusano fc6ab3
 * just define FAR to be empty.
kusano fc6ab3
 */
kusano fc6ab3
#ifdef SYS16BIT
kusano fc6ab3
#  if defined(M_I86SM) || defined(M_I86MM)
kusano fc6ab3
     /* MSC small or medium model */
kusano fc6ab3
#    define SMALL_MEDIUM
kusano fc6ab3
#    ifdef _MSC_VER
kusano fc6ab3
#      define FAR _far
kusano fc6ab3
#    else
kusano fc6ab3
#      define FAR far
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#  if (defined(__SMALL__) || defined(__MEDIUM__))
kusano fc6ab3
     /* Turbo C small or medium model */
kusano fc6ab3
#    define SMALL_MEDIUM
kusano fc6ab3
#    ifdef __BORLANDC__
kusano fc6ab3
#      define FAR _far
kusano fc6ab3
#    else
kusano fc6ab3
#      define FAR far
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(WINDOWS) || defined(WIN32)
kusano fc6ab3
   /* If building or using zlib as a DLL, define ZLIB_DLL.
kusano fc6ab3
    * This is not mandatory, but it offers a little performance increase.
kusano fc6ab3
    */
kusano fc6ab3
#  ifdef ZLIB_DLL
kusano fc6ab3
#    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
kusano fc6ab3
#      ifdef ZLIB_INTERNAL
kusano fc6ab3
#        define ZEXTERN extern __declspec(dllexport)
kusano fc6ab3
#      else
kusano fc6ab3
#        define ZEXTERN extern __declspec(dllimport)
kusano fc6ab3
#      endif
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif  /* ZLIB_DLL */
kusano fc6ab3
   /* If building or using zlib with the WINAPI/WINAPIV calling convention,
kusano fc6ab3
    * define ZLIB_WINAPI.
kusano fc6ab3
    * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
kusano fc6ab3
    */
kusano fc6ab3
#  ifdef ZLIB_WINAPI
kusano fc6ab3
#    ifdef FAR
kusano fc6ab3
#      undef FAR
kusano fc6ab3
#    endif
kusano fc6ab3
#    include <windows.h></windows.h>
kusano fc6ab3
     /* No need for _export, use ZLIB.DEF instead. */
kusano fc6ab3
     /* For complete Windows compatibility, use WINAPI, not __stdcall. */
kusano fc6ab3
#    define ZEXPORT WINAPI
kusano fc6ab3
#    ifdef WIN32
kusano fc6ab3
#      define ZEXPORTVA WINAPIV
kusano fc6ab3
#    else
kusano fc6ab3
#      define ZEXPORTVA FAR CDECL
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined (__BEOS__)
kusano fc6ab3
#  ifdef ZLIB_DLL
kusano fc6ab3
#    ifdef ZLIB_INTERNAL
kusano fc6ab3
#      define ZEXPORT   __declspec(dllexport)
kusano fc6ab3
#      define ZEXPORTVA __declspec(dllexport)
kusano fc6ab3
#    else
kusano fc6ab3
#      define ZEXPORT   __declspec(dllimport)
kusano fc6ab3
#      define ZEXPORTVA __declspec(dllimport)
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef ZEXTERN
kusano fc6ab3
#  define ZEXTERN extern
kusano fc6ab3
#endif
kusano fc6ab3
#ifndef ZEXPORT
kusano fc6ab3
#  define ZEXPORT
kusano fc6ab3
#endif
kusano fc6ab3
#ifndef ZEXPORTVA
kusano fc6ab3
#  define ZEXPORTVA
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef FAR
kusano fc6ab3
#  define FAR
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if !defined(__MACTYPES__)
kusano fc6ab3
typedef unsigned char  Byte;  /* 8 bits */
kusano fc6ab3
#endif
kusano fc6ab3
typedef unsigned int   uInt;  /* 16 bits or more */
kusano fc6ab3
typedef unsigned long  uLong; /* 32 bits or more */
kusano fc6ab3
kusano fc6ab3
#ifdef SMALL_MEDIUM
kusano fc6ab3
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
kusano fc6ab3
#  define Bytef Byte FAR
kusano fc6ab3
#else
kusano fc6ab3
   typedef Byte  FAR Bytef;
kusano fc6ab3
#endif
kusano fc6ab3
typedef char  FAR charf;
kusano fc6ab3
typedef int   FAR intf;
kusano fc6ab3
typedef uInt  FAR uIntf;
kusano fc6ab3
typedef uLong FAR uLongf;
kusano fc6ab3
kusano fc6ab3
#ifdef STDC
kusano fc6ab3
   typedef void const *voidpc;
kusano fc6ab3
   typedef void FAR   *voidpf;
kusano fc6ab3
   typedef void       *voidp;
kusano fc6ab3
#else
kusano fc6ab3
   typedef Byte const *voidpc;
kusano fc6ab3
   typedef Byte FAR   *voidpf;
kusano fc6ab3
   typedef Byte       *voidp;
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
kusano fc6ab3
#  include <limits.h></limits.h>
kusano fc6ab3
#  if (UINT_MAX == 0xffffffffUL)
kusano fc6ab3
#    define Z_U4 unsigned
kusano fc6ab3
#  elif (ULONG_MAX == 0xffffffffUL)
kusano fc6ab3
#    define Z_U4 unsigned long
kusano fc6ab3
#  elif (USHRT_MAX == 0xffffffffUL)
kusano fc6ab3
#    define Z_U4 unsigned short
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef Z_U4
kusano fc6ab3
   typedef Z_U4 z_crc_t;
kusano fc6ab3
#else
kusano fc6ab3
   typedef unsigned long z_crc_t;
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
kusano fc6ab3
#  define Z_HAVE_UNISTD_H
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
kusano fc6ab3
#  define Z_HAVE_STDARG_H
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef STDC
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    include <sys types.h="">      /* for off_t */</sys>
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    include <stdarg.h>         /* for va_list */</stdarg.h>
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifdef _WIN32
kusano fc6ab3
#  ifndef Z_SOLO
kusano fc6ab3
#    include <stddef.h>         /* for wchar_t */</stddef.h>
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
kusano fc6ab3
 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
kusano fc6ab3
 * though the former does not conform to the LFS document), but considering
kusano fc6ab3
 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
kusano fc6ab3
 * equivalently requesting no 64-bit operations
kusano fc6ab3
 */
kusano fc6ab3
#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
kusano fc6ab3
#  undef _LARGEFILE64_SOURCE
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
kusano fc6ab3
#  define Z_HAVE_UNISTD_H
kusano fc6ab3
#endif
kusano fc6ab3
#ifndef Z_SOLO
kusano fc6ab3
#  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
kusano fc6ab3
#    include <unistd.h>         /* for SEEK_*, off_t, and _LFS64_LARGEFILE */</unistd.h>
kusano fc6ab3
#    ifdef VMS
kusano fc6ab3
#      include <unixio.h>       /* for off_t */</unixio.h>
kusano fc6ab3
#    endif
kusano fc6ab3
#    ifndef z_off_t
kusano fc6ab3
#      define z_off_t off_t
kusano fc6ab3
#    endif
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
kusano fc6ab3
#  define Z_LFS64
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
kusano fc6ab3
#  define Z_LARGE64
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
kusano fc6ab3
#  define Z_WANT64
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if !defined(SEEK_SET) && !defined(Z_SOLO)
kusano fc6ab3
#  define SEEK_SET        0       /* Seek from beginning of file.  */
kusano fc6ab3
#  define SEEK_CUR        1       /* Seek from current position.  */
kusano fc6ab3
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef z_off_t
kusano fc6ab3
#  define z_off_t long
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#if !defined(_WIN32) && defined(Z_LARGE64)
kusano fc6ab3
#  define z_off64_t off64_t
kusano fc6ab3
#else
kusano fc6ab3
#  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
kusano fc6ab3
#    define z_off64_t __int64
kusano fc6ab3
#  else
kusano fc6ab3
#    define z_off64_t z_off_t
kusano fc6ab3
#  endif
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
/* MVS linker does not support external names larger than 8 bytes */
kusano fc6ab3
#if defined(__MVS__)
kusano fc6ab3
  #pragma map(deflateInit_,"DEIN")
kusano fc6ab3
  #pragma map(deflateInit2_,"DEIN2")
kusano fc6ab3
  #pragma map(deflateEnd,"DEEND")
kusano fc6ab3
  #pragma map(deflateBound,"DEBND")
kusano fc6ab3
  #pragma map(inflateInit_,"ININ")
kusano fc6ab3
  #pragma map(inflateInit2_,"ININ2")
kusano fc6ab3
  #pragma map(inflateEnd,"INEND")
kusano fc6ab3
  #pragma map(inflateSync,"INSY")
kusano fc6ab3
  #pragma map(inflateSetDictionary,"INSEDI")
kusano fc6ab3
  #pragma map(compressBound,"CMBND")
kusano fc6ab3
  #pragma map(inflate_table,"INTABL")
kusano fc6ab3
  #pragma map(inflate_fast,"INFA")
kusano fc6ab3
  #pragma map(inflate_copyright,"INCOPY")
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#endif /* ZCONF_H */