Home | History | Annotate | Line # | Download | only in zlib
zconf.h.cmakein revision 1.1.1.1
      1  1.1  christos /* zconf.h -- configuration of the zlib compression library
      2  1.1  christos  * Copyright (C) 1995-2012 Jean-loup Gailly.
      3  1.1  christos  * For conditions of distribution and use, see copyright notice in zlib.h
      4  1.1  christos  */
      5  1.1  christos 
      6  1.1  christos /* @(#) Id */
      7  1.1  christos 
      8  1.1  christos #ifndef ZCONF_H
      9  1.1  christos #define ZCONF_H
     10  1.1  christos #cmakedefine Z_PREFIX
     11  1.1  christos #cmakedefine Z_HAVE_UNISTD_H
     12  1.1  christos 
     13  1.1  christos /*
     14  1.1  christos  * If you *really* need a unique prefix for all types and library functions,
     15  1.1  christos  * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
     16  1.1  christos  * Even better than compiling with -DZ_PREFIX would be to use configure to set
     17  1.1  christos  * this permanently in zconf.h using "./configure --zprefix".
     18  1.1  christos  */
     19  1.1  christos #ifdef Z_PREFIX     /* may be set to #if 1 by ./configure */
     20  1.1  christos #  define Z_PREFIX_SET
     21  1.1  christos 
     22  1.1  christos /* all linked symbols */
     23  1.1  christos #  define _dist_code            z__dist_code
     24  1.1  christos #  define _length_code          z__length_code
     25  1.1  christos #  define _tr_align             z__tr_align
     26  1.1  christos #  define _tr_flush_block       z__tr_flush_block
     27  1.1  christos #  define _tr_init              z__tr_init
     28  1.1  christos #  define _tr_stored_block      z__tr_stored_block
     29  1.1  christos #  define _tr_tally             z__tr_tally
     30  1.1  christos #  define adler32               z_adler32
     31  1.1  christos #  define adler32_combine       z_adler32_combine
     32  1.1  christos #  define adler32_combine64     z_adler32_combine64
     33  1.1  christos #  ifndef Z_SOLO
     34  1.1  christos #    define compress              z_compress
     35  1.1  christos #    define compress2             z_compress2
     36  1.1  christos #    define compressBound         z_compressBound
     37  1.1  christos #  endif
     38  1.1  christos #  define crc32                 z_crc32
     39  1.1  christos #  define crc32_combine         z_crc32_combine
     40  1.1  christos #  define crc32_combine64       z_crc32_combine64
     41  1.1  christos #  define deflate               z_deflate
     42  1.1  christos #  define deflateBound          z_deflateBound
     43  1.1  christos #  define deflateCopy           z_deflateCopy
     44  1.1  christos #  define deflateEnd            z_deflateEnd
     45  1.1  christos #  define deflateInit2_         z_deflateInit2_
     46  1.1  christos #  define deflateInit_          z_deflateInit_
     47  1.1  christos #  define deflateParams         z_deflateParams
     48  1.1  christos #  define deflatePending        z_deflatePending
     49  1.1  christos #  define deflatePrime          z_deflatePrime
     50  1.1  christos #  define deflateReset          z_deflateReset
     51  1.1  christos #  define deflateResetKeep      z_deflateResetKeep
     52  1.1  christos #  define deflateSetDictionary  z_deflateSetDictionary
     53  1.1  christos #  define deflateSetHeader      z_deflateSetHeader
     54  1.1  christos #  define deflateTune           z_deflateTune
     55  1.1  christos #  define deflate_copyright     z_deflate_copyright
     56  1.1  christos #  define get_crc_table         z_get_crc_table
     57  1.1  christos #  ifndef Z_SOLO
     58  1.1  christos #    define gz_error              z_gz_error
     59  1.1  christos #    define gz_intmax             z_gz_intmax
     60  1.1  christos #    define gz_strwinerror        z_gz_strwinerror
     61  1.1  christos #    define gzbuffer              z_gzbuffer
     62  1.1  christos #    define gzclearerr            z_gzclearerr
     63  1.1  christos #    define gzclose               z_gzclose
     64  1.1  christos #    define gzclose_r             z_gzclose_r
     65  1.1  christos #    define gzclose_w             z_gzclose_w
     66  1.1  christos #    define gzdirect              z_gzdirect
     67  1.1  christos #    define gzdopen               z_gzdopen
     68  1.1  christos #    define gzeof                 z_gzeof
     69  1.1  christos #    define gzerror               z_gzerror
     70  1.1  christos #    define gzflush               z_gzflush
     71  1.1  christos #    define gzgetc                z_gzgetc
     72  1.1  christos #    define gzgetc_               z_gzgetc_
     73  1.1  christos #    define gzgets                z_gzgets
     74  1.1  christos #    define gzoffset              z_gzoffset
     75  1.1  christos #    define gzoffset64            z_gzoffset64
     76  1.1  christos #    define gzopen                z_gzopen
     77  1.1  christos #    define gzopen64              z_gzopen64
     78  1.1  christos #    ifdef _WIN32
     79  1.1  christos #      define gzopen_w              z_gzopen_w
     80  1.1  christos #    endif
     81  1.1  christos #    define gzprintf              z_gzprintf
     82  1.1  christos #    define gzputc                z_gzputc
     83  1.1  christos #    define gzputs                z_gzputs
     84  1.1  christos #    define gzread                z_gzread
     85  1.1  christos #    define gzrewind              z_gzrewind
     86  1.1  christos #    define gzseek                z_gzseek
     87  1.1  christos #    define gzseek64              z_gzseek64
     88  1.1  christos #    define gzsetparams           z_gzsetparams
     89  1.1  christos #    define gztell                z_gztell
     90  1.1  christos #    define gztell64              z_gztell64
     91  1.1  christos #    define gzungetc              z_gzungetc
     92  1.1  christos #    define gzwrite               z_gzwrite
     93  1.1  christos #  endif
     94  1.1  christos #  define inflate               z_inflate
     95  1.1  christos #  define inflateBack           z_inflateBack
     96  1.1  christos #  define inflateBackEnd        z_inflateBackEnd
     97  1.1  christos #  define inflateBackInit_      z_inflateBackInit_
     98  1.1  christos #  define inflateCopy           z_inflateCopy
     99  1.1  christos #  define inflateEnd            z_inflateEnd
    100  1.1  christos #  define inflateGetHeader      z_inflateGetHeader
    101  1.1  christos #  define inflateInit2_         z_inflateInit2_
    102  1.1  christos #  define inflateInit_          z_inflateInit_
    103  1.1  christos #  define inflateMark           z_inflateMark
    104  1.1  christos #  define inflatePrime          z_inflatePrime
    105  1.1  christos #  define inflateReset          z_inflateReset
    106  1.1  christos #  define inflateReset2         z_inflateReset2
    107  1.1  christos #  define inflateSetDictionary  z_inflateSetDictionary
    108  1.1  christos #  define inflateSync           z_inflateSync
    109  1.1  christos #  define inflateSyncPoint      z_inflateSyncPoint
    110  1.1  christos #  define inflateUndermine      z_inflateUndermine
    111  1.1  christos #  define inflateResetKeep      z_inflateResetKeep
    112  1.1  christos #  define inflate_copyright     z_inflate_copyright
    113  1.1  christos #  define inflate_fast          z_inflate_fast
    114  1.1  christos #  define inflate_table         z_inflate_table
    115  1.1  christos #  ifndef Z_SOLO
    116  1.1  christos #    define uncompress            z_uncompress
    117  1.1  christos #  endif
    118  1.1  christos #  define zError                z_zError
    119  1.1  christos #  ifndef Z_SOLO
    120  1.1  christos #    define zcalloc               z_zcalloc
    121  1.1  christos #    define zcfree                z_zcfree
    122  1.1  christos #  endif
    123  1.1  christos #  define zlibCompileFlags      z_zlibCompileFlags
    124  1.1  christos #  define zlibVersion           z_zlibVersion
    125  1.1  christos 
    126  1.1  christos /* all zlib typedefs in zlib.h and zconf.h */
    127  1.1  christos #  define Byte                  z_Byte
    128  1.1  christos #  define Bytef                 z_Bytef
    129  1.1  christos #  define alloc_func            z_alloc_func
    130  1.1  christos #  define charf                 z_charf
    131  1.1  christos #  define free_func             z_free_func
    132  1.1  christos #  ifndef Z_SOLO
    133  1.1  christos #    define gzFile                z_gzFile
    134  1.1  christos #  endif
    135  1.1  christos #  define gz_header             z_gz_header
    136  1.1  christos #  define gz_headerp            z_gz_headerp
    137  1.1  christos #  define in_func               z_in_func
    138  1.1  christos #  define intf                  z_intf
    139  1.1  christos #  define out_func              z_out_func
    140  1.1  christos #  define uInt                  z_uInt
    141  1.1  christos #  define uIntf                 z_uIntf
    142  1.1  christos #  define uLong                 z_uLong
    143  1.1  christos #  define uLongf                z_uLongf
    144  1.1  christos #  define voidp                 z_voidp
    145  1.1  christos #  define voidpc                z_voidpc
    146  1.1  christos #  define voidpf                z_voidpf
    147  1.1  christos 
    148  1.1  christos /* all zlib structs in zlib.h and zconf.h */
    149  1.1  christos #  define gz_header_s           z_gz_header_s
    150  1.1  christos #  define internal_state        z_internal_state
    151  1.1  christos 
    152  1.1  christos #endif
    153  1.1  christos 
    154  1.1  christos #if defined(__MSDOS__) && !defined(MSDOS)
    155  1.1  christos #  define MSDOS
    156  1.1  christos #endif
    157  1.1  christos #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
    158  1.1  christos #  define OS2
    159  1.1  christos #endif
    160  1.1  christos #if defined(_WINDOWS) && !defined(WINDOWS)
    161  1.1  christos #  define WINDOWS
    162  1.1  christos #endif
    163  1.1  christos #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
    164  1.1  christos #  ifndef WIN32
    165  1.1  christos #    define WIN32
    166  1.1  christos #  endif
    167  1.1  christos #endif
    168  1.1  christos #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
    169  1.1  christos #  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
    170  1.1  christos #    ifndef SYS16BIT
    171  1.1  christos #      define SYS16BIT
    172  1.1  christos #    endif
    173  1.1  christos #  endif
    174  1.1  christos #endif
    175  1.1  christos 
    176  1.1  christos /*
    177  1.1  christos  * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
    178  1.1  christos  * than 64k bytes at a time (needed on systems with 16-bit int).
    179  1.1  christos  */
    180  1.1  christos #ifdef SYS16BIT
    181  1.1  christos #  define MAXSEG_64K
    182  1.1  christos #endif
    183  1.1  christos #ifdef MSDOS
    184  1.1  christos #  define UNALIGNED_OK
    185  1.1  christos #endif
    186  1.1  christos 
    187  1.1  christos #ifdef __STDC_VERSION__
    188  1.1  christos #  ifndef STDC
    189  1.1  christos #    define STDC
    190  1.1  christos #  endif
    191  1.1  christos #  if __STDC_VERSION__ >= 199901L
    192  1.1  christos #    ifndef STDC99
    193  1.1  christos #      define STDC99
    194  1.1  christos #    endif
    195  1.1  christos #  endif
    196  1.1  christos #endif
    197  1.1  christos #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
    198  1.1  christos #  define STDC
    199  1.1  christos #endif
    200  1.1  christos #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
    201  1.1  christos #  define STDC
    202  1.1  christos #endif
    203  1.1  christos #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
    204  1.1  christos #  define STDC
    205  1.1  christos #endif
    206  1.1  christos #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
    207  1.1  christos #  define STDC
    208  1.1  christos #endif
    209  1.1  christos 
    210  1.1  christos #if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
    211  1.1  christos #  define STDC
    212  1.1  christos #endif
    213  1.1  christos 
    214  1.1  christos #ifndef STDC
    215  1.1  christos #  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
    216  1.1  christos #    define const       /* note: need a more gentle solution here */
    217  1.1  christos #  endif
    218  1.1  christos #endif
    219  1.1  christos 
    220  1.1  christos #if defined(ZLIB_CONST) && !defined(z_const)
    221  1.1  christos #  define z_const const
    222  1.1  christos #else
    223  1.1  christos #  define z_const
    224  1.1  christos #endif
    225  1.1  christos 
    226  1.1  christos /* Some Mac compilers merge all .h files incorrectly: */
    227  1.1  christos #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
    228  1.1  christos #  define NO_DUMMY_DECL
    229  1.1  christos #endif
    230  1.1  christos 
    231  1.1  christos /* Maximum value for memLevel in deflateInit2 */
    232  1.1  christos #ifndef MAX_MEM_LEVEL
    233  1.1  christos #  ifdef MAXSEG_64K
    234  1.1  christos #    define MAX_MEM_LEVEL 8
    235  1.1  christos #  else
    236  1.1  christos #    define MAX_MEM_LEVEL 9
    237  1.1  christos #  endif
    238  1.1  christos #endif
    239  1.1  christos 
    240  1.1  christos /* Maximum value for windowBits in deflateInit2 and inflateInit2.
    241  1.1  christos  * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
    242  1.1  christos  * created by gzip. (Files created by minigzip can still be extracted by
    243  1.1  christos  * gzip.)
    244  1.1  christos  */
    245  1.1  christos #ifndef MAX_WBITS
    246  1.1  christos #  define MAX_WBITS   15 /* 32K LZ77 window */
    247  1.1  christos #endif
    248  1.1  christos 
    249  1.1  christos /* The memory requirements for deflate are (in bytes):
    250  1.1  christos             (1 << (windowBits+2)) +  (1 << (memLevel+9))
    251  1.1  christos  that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
    252  1.1  christos  plus a few kilobytes for small objects. For example, if you want to reduce
    253  1.1  christos  the default memory requirements from 256K to 128K, compile with
    254  1.1  christos      make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
    255  1.1  christos  Of course this will generally degrade compression (there's no free lunch).
    256  1.1  christos 
    257  1.1  christos    The memory requirements for inflate are (in bytes) 1 << windowBits
    258  1.1  christos  that is, 32K for windowBits=15 (default value) plus a few kilobytes
    259  1.1  christos  for small objects.
    260  1.1  christos */
    261  1.1  christos 
    262  1.1  christos                         /* Type declarations */
    263  1.1  christos 
    264  1.1  christos #ifndef OF /* function prototypes */
    265  1.1  christos #  ifdef STDC
    266  1.1  christos #    define OF(args)  args
    267  1.1  christos #  else
    268  1.1  christos #    define OF(args)  ()
    269  1.1  christos #  endif
    270  1.1  christos #endif
    271  1.1  christos 
    272  1.1  christos #ifndef Z_ARG /* function prototypes for stdarg */
    273  1.1  christos #  if defined(STDC) || defined(Z_HAVE_STDARG_H)
    274  1.1  christos #    define Z_ARG(args)  args
    275  1.1  christos #  else
    276  1.1  christos #    define Z_ARG(args)  ()
    277  1.1  christos #  endif
    278  1.1  christos #endif
    279  1.1  christos 
    280  1.1  christos /* The following definitions for FAR are needed only for MSDOS mixed
    281  1.1  christos  * model programming (small or medium model with some far allocations).
    282  1.1  christos  * This was tested only with MSC; for other MSDOS compilers you may have
    283  1.1  christos  * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
    284  1.1  christos  * just define FAR to be empty.
    285  1.1  christos  */
    286  1.1  christos #ifdef SYS16BIT
    287  1.1  christos #  if defined(M_I86SM) || defined(M_I86MM)
    288  1.1  christos      /* MSC small or medium model */
    289  1.1  christos #    define SMALL_MEDIUM
    290  1.1  christos #    ifdef _MSC_VER
    291  1.1  christos #      define FAR _far
    292  1.1  christos #    else
    293  1.1  christos #      define FAR far
    294  1.1  christos #    endif
    295  1.1  christos #  endif
    296  1.1  christos #  if (defined(__SMALL__) || defined(__MEDIUM__))
    297  1.1  christos      /* Turbo C small or medium model */
    298  1.1  christos #    define SMALL_MEDIUM
    299  1.1  christos #    ifdef __BORLANDC__
    300  1.1  christos #      define FAR _far
    301  1.1  christos #    else
    302  1.1  christos #      define FAR far
    303  1.1  christos #    endif
    304  1.1  christos #  endif
    305  1.1  christos #endif
    306  1.1  christos 
    307  1.1  christos #if defined(WINDOWS) || defined(WIN32)
    308  1.1  christos    /* If building or using zlib as a DLL, define ZLIB_DLL.
    309  1.1  christos     * This is not mandatory, but it offers a little performance increase.
    310  1.1  christos     */
    311  1.1  christos #  ifdef ZLIB_DLL
    312  1.1  christos #    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
    313  1.1  christos #      ifdef ZLIB_INTERNAL
    314  1.1  christos #        define ZEXTERN extern __declspec(dllexport)
    315  1.1  christos #      else
    316  1.1  christos #        define ZEXTERN extern __declspec(dllimport)
    317  1.1  christos #      endif
    318  1.1  christos #    endif
    319  1.1  christos #  endif  /* ZLIB_DLL */
    320  1.1  christos    /* If building or using zlib with the WINAPI/WINAPIV calling convention,
    321  1.1  christos     * define ZLIB_WINAPI.
    322  1.1  christos     * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
    323  1.1  christos     */
    324  1.1  christos #  ifdef ZLIB_WINAPI
    325  1.1  christos #    ifdef FAR
    326  1.1  christos #      undef FAR
    327  1.1  christos #    endif
    328  1.1  christos #    include <windows.h>
    329  1.1  christos      /* No need for _export, use ZLIB.DEF instead. */
    330  1.1  christos      /* For complete Windows compatibility, use WINAPI, not __stdcall. */
    331  1.1  christos #    define ZEXPORT WINAPI
    332  1.1  christos #    ifdef WIN32
    333  1.1  christos #      define ZEXPORTVA WINAPIV
    334  1.1  christos #    else
    335  1.1  christos #      define ZEXPORTVA FAR CDECL
    336  1.1  christos #    endif
    337  1.1  christos #  endif
    338  1.1  christos #endif
    339  1.1  christos 
    340  1.1  christos #if defined (__BEOS__)
    341  1.1  christos #  ifdef ZLIB_DLL
    342  1.1  christos #    ifdef ZLIB_INTERNAL
    343  1.1  christos #      define ZEXPORT   __declspec(dllexport)
    344  1.1  christos #      define ZEXPORTVA __declspec(dllexport)
    345  1.1  christos #    else
    346  1.1  christos #      define ZEXPORT   __declspec(dllimport)
    347  1.1  christos #      define ZEXPORTVA __declspec(dllimport)
    348  1.1  christos #    endif
    349  1.1  christos #  endif
    350  1.1  christos #endif
    351  1.1  christos 
    352  1.1  christos #ifndef ZEXTERN
    353  1.1  christos #  define ZEXTERN extern
    354  1.1  christos #endif
    355  1.1  christos #ifndef ZEXPORT
    356  1.1  christos #  define ZEXPORT
    357  1.1  christos #endif
    358  1.1  christos #ifndef ZEXPORTVA
    359  1.1  christos #  define ZEXPORTVA
    360  1.1  christos #endif
    361  1.1  christos 
    362  1.1  christos #ifndef FAR
    363  1.1  christos #  define FAR
    364  1.1  christos #endif
    365  1.1  christos 
    366  1.1  christos #if !defined(__MACTYPES__)
    367  1.1  christos typedef unsigned char  Byte;  /* 8 bits */
    368  1.1  christos #endif
    369  1.1  christos typedef unsigned int   uInt;  /* 16 bits or more */
    370  1.1  christos typedef unsigned long  uLong; /* 32 bits or more */
    371  1.1  christos 
    372  1.1  christos #ifdef SMALL_MEDIUM
    373  1.1  christos    /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
    374  1.1  christos #  define Bytef Byte FAR
    375  1.1  christos #else
    376  1.1  christos    typedef Byte  FAR Bytef;
    377  1.1  christos #endif
    378  1.1  christos typedef char  FAR charf;
    379  1.1  christos typedef int   FAR intf;
    380  1.1  christos typedef uInt  FAR uIntf;
    381  1.1  christos typedef uLong FAR uLongf;
    382  1.1  christos 
    383  1.1  christos #ifdef STDC
    384  1.1  christos    typedef void const *voidpc;
    385  1.1  christos    typedef void FAR   *voidpf;
    386  1.1  christos    typedef void       *voidp;
    387  1.1  christos #else
    388  1.1  christos    typedef Byte const *voidpc;
    389  1.1  christos    typedef Byte FAR   *voidpf;
    390  1.1  christos    typedef Byte       *voidp;
    391  1.1  christos #endif
    392  1.1  christos 
    393  1.1  christos /* ./configure may #define Z_U4 here */
    394  1.1  christos 
    395  1.1  christos #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
    396  1.1  christos #  include <limits.h>
    397  1.1  christos #  if (UINT_MAX == 0xffffffffUL)
    398  1.1  christos #    define Z_U4 unsigned
    399  1.1  christos #  else
    400  1.1  christos #    if (ULONG_MAX == 0xffffffffUL)
    401  1.1  christos #      define Z_U4 unsigned long
    402  1.1  christos #    else
    403  1.1  christos #      if (USHRT_MAX == 0xffffffffUL)
    404  1.1  christos #        define Z_U4 unsigned short
    405  1.1  christos #      endif
    406  1.1  christos #    endif
    407  1.1  christos #  endif
    408  1.1  christos #endif
    409  1.1  christos 
    410  1.1  christos #ifdef Z_U4
    411  1.1  christos    typedef Z_U4 z_crc_t;
    412  1.1  christos #else
    413  1.1  christos    typedef unsigned long z_crc_t;
    414  1.1  christos #endif
    415  1.1  christos 
    416  1.1  christos #ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
    417  1.1  christos #  define Z_HAVE_UNISTD_H
    418  1.1  christos #endif
    419  1.1  christos 
    420  1.1  christos #ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
    421  1.1  christos #  define Z_HAVE_STDARG_H
    422  1.1  christos #endif
    423  1.1  christos 
    424  1.1  christos #ifdef STDC
    425  1.1  christos #  ifndef Z_SOLO
    426  1.1  christos #    include <sys/types.h>      /* for off_t */
    427  1.1  christos #  endif
    428  1.1  christos #endif
    429  1.1  christos 
    430  1.1  christos #ifdef _WIN32
    431  1.1  christos #  include <stddef.h>           /* for wchar_t */
    432  1.1  christos #endif
    433  1.1  christos 
    434  1.1  christos /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
    435  1.1  christos  * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
    436  1.1  christos  * though the former does not conform to the LFS document), but considering
    437  1.1  christos  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
    438  1.1  christos  * equivalently requesting no 64-bit operations
    439  1.1  christos  */
    440  1.1  christos #if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
    441  1.1  christos #  undef _LARGEFILE64_SOURCE
    442  1.1  christos #endif
    443  1.1  christos 
    444  1.1  christos #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
    445  1.1  christos #  define Z_HAVE_UNISTD_H
    446  1.1  christos #endif
    447  1.1  christos #ifndef Z_SOLO
    448  1.1  christos #  if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE)
    449  1.1  christos #    include <unistd.h>         /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
    450  1.1  christos #    ifdef VMS
    451  1.1  christos #      include <unixio.h>       /* for off_t */
    452  1.1  christos #    endif
    453  1.1  christos #    ifndef z_off_t
    454  1.1  christos #      define z_off_t off_t
    455  1.1  christos #    endif
    456  1.1  christos #  endif
    457  1.1  christos #endif
    458  1.1  christos 
    459  1.1  christos #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
    460  1.1  christos #  define Z_LFS64
    461  1.1  christos #endif
    462  1.1  christos 
    463  1.1  christos #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
    464  1.1  christos #  define Z_LARGE64
    465  1.1  christos #endif
    466  1.1  christos 
    467  1.1  christos #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
    468  1.1  christos #  define Z_WANT64
    469  1.1  christos #endif
    470  1.1  christos 
    471  1.1  christos #if !defined(SEEK_SET) && !defined(Z_SOLO)
    472  1.1  christos #  define SEEK_SET        0       /* Seek from beginning of file.  */
    473  1.1  christos #  define SEEK_CUR        1       /* Seek from current position.  */
    474  1.1  christos #  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
    475  1.1  christos #endif
    476  1.1  christos 
    477  1.1  christos #ifndef z_off_t
    478  1.1  christos #  define z_off_t long
    479  1.1  christos #endif
    480  1.1  christos 
    481  1.1  christos #if !defined(_WIN32) && defined(Z_LARGE64)
    482  1.1  christos #  define z_off64_t off64_t
    483  1.1  christos #else
    484  1.1  christos #  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
    485  1.1  christos #    define z_off64_t __int64
    486  1.1  christos #  else
    487  1.1  christos #    define z_off64_t z_off_t
    488  1.1  christos #  endif
    489  1.1  christos #endif
    490  1.1  christos 
    491  1.1  christos /* MVS linker does not support external names larger than 8 bytes */
    492  1.1  christos #if defined(__MVS__)
    493  1.1  christos   #pragma map(deflateInit_,"DEIN")
    494  1.1  christos   #pragma map(deflateInit2_,"DEIN2")
    495  1.1  christos   #pragma map(deflateEnd,"DEEND")
    496  1.1  christos   #pragma map(deflateBound,"DEBND")
    497  1.1  christos   #pragma map(inflateInit_,"ININ")
    498  1.1  christos   #pragma map(inflateInit2_,"ININ2")
    499  1.1  christos   #pragma map(inflateEnd,"INEND")
    500  1.1  christos   #pragma map(inflateSync,"INSY")
    501  1.1  christos   #pragma map(inflateSetDictionary,"INSEDI")
    502  1.1  christos   #pragma map(compressBound,"CMBND")
    503  1.1  christos   #pragma map(inflate_table,"INTABL")
    504  1.1  christos   #pragma map(inflate_fast,"INFA")
    505  1.1  christos   #pragma map(inflate_copyright,"INCOPY")
    506  1.1  christos #endif
    507  1.1  christos 
    508  1.1  christos #endif /* ZCONF_H */
    509