Warning, /education/marble/src/3rdparty/zlib/zconf.h.cmakein is written in an unsupported language. File is not indexed.

0001 /* zconf.h -- configuration of the zlib compression library
0002  * Copyright (C) 1995-2013 Jean-loup Gailly.
0003  * For conditions of distribution and use, see copyright notice in zlib.h
0004  */
0005 
0006 /* @(#) $Id$ */
0007 
0008 #ifndef ZCONF_H
0009 #define ZCONF_H
0010 #cmakedefine Z_PREFIX
0011 #cmakedefine Z_HAVE_UNISTD_H
0012 
0013 /*
0014  * If you *really* need a unique prefix for all types and library functions,
0015  * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
0016  * Even better than compiling with -DZ_PREFIX would be to use configure to set
0017  * this permanently in zconf.h using "./configure --zprefix".
0018  */
0019 #ifdef Z_PREFIX     /* may be set to #if 1 by ./configure */
0020 #  define Z_PREFIX_SET
0021 
0022 /* all linked symbols */
0023 #  define _dist_code            z__dist_code
0024 #  define _length_code          z__length_code
0025 #  define _tr_align             z__tr_align
0026 #  define _tr_flush_bits        z__tr_flush_bits
0027 #  define _tr_flush_block       z__tr_flush_block
0028 #  define _tr_init              z__tr_init
0029 #  define _tr_stored_block      z__tr_stored_block
0030 #  define _tr_tally             z__tr_tally
0031 #  define adler32               z_adler32
0032 #  define adler32_combine       z_adler32_combine
0033 #  define adler32_combine64     z_adler32_combine64
0034 #  ifndef Z_SOLO
0035 #    define compress              z_compress
0036 #    define compress2             z_compress2
0037 #    define compressBound         z_compressBound
0038 #  endif
0039 #  define crc32                 z_crc32
0040 #  define crc32_combine         z_crc32_combine
0041 #  define crc32_combine64       z_crc32_combine64
0042 #  define deflate               z_deflate
0043 #  define deflateBound          z_deflateBound
0044 #  define deflateCopy           z_deflateCopy
0045 #  define deflateEnd            z_deflateEnd
0046 #  define deflateInit2_         z_deflateInit2_
0047 #  define deflateInit_          z_deflateInit_
0048 #  define deflateParams         z_deflateParams
0049 #  define deflatePending        z_deflatePending
0050 #  define deflatePrime          z_deflatePrime
0051 #  define deflateReset          z_deflateReset
0052 #  define deflateResetKeep      z_deflateResetKeep
0053 #  define deflateSetDictionary  z_deflateSetDictionary
0054 #  define deflateSetHeader      z_deflateSetHeader
0055 #  define deflateTune           z_deflateTune
0056 #  define deflate_copyright     z_deflate_copyright
0057 #  define get_crc_table         z_get_crc_table
0058 #  ifndef Z_SOLO
0059 #    define gz_error              z_gz_error
0060 #    define gz_intmax             z_gz_intmax
0061 #    define gz_strwinerror        z_gz_strwinerror
0062 #    define gzbuffer              z_gzbuffer
0063 #    define gzclearerr            z_gzclearerr
0064 #    define gzclose               z_gzclose
0065 #    define gzclose_r             z_gzclose_r
0066 #    define gzclose_w             z_gzclose_w
0067 #    define gzdirect              z_gzdirect
0068 #    define gzdopen               z_gzdopen
0069 #    define gzeof                 z_gzeof
0070 #    define gzerror               z_gzerror
0071 #    define gzflush               z_gzflush
0072 #    define gzgetc                z_gzgetc
0073 #    define gzgetc_               z_gzgetc_
0074 #    define gzgets                z_gzgets
0075 #    define gzoffset              z_gzoffset
0076 #    define gzoffset64            z_gzoffset64
0077 #    define gzopen                z_gzopen
0078 #    define gzopen64              z_gzopen64
0079 #    ifdef _WIN32
0080 #      define gzopen_w              z_gzopen_w
0081 #    endif
0082 #    define gzprintf              z_gzprintf
0083 #    define gzvprintf             z_gzvprintf
0084 #    define gzputc                z_gzputc
0085 #    define gzputs                z_gzputs
0086 #    define gzread                z_gzread
0087 #    define gzrewind              z_gzrewind
0088 #    define gzseek                z_gzseek
0089 #    define gzseek64              z_gzseek64
0090 #    define gzsetparams           z_gzsetparams
0091 #    define gztell                z_gztell
0092 #    define gztell64              z_gztell64
0093 #    define gzungetc              z_gzungetc
0094 #    define gzwrite               z_gzwrite
0095 #  endif
0096 #  define inflate               z_inflate
0097 #  define inflateBack           z_inflateBack
0098 #  define inflateBackEnd        z_inflateBackEnd
0099 #  define inflateBackInit_      z_inflateBackInit_
0100 #  define inflateCopy           z_inflateCopy
0101 #  define inflateEnd            z_inflateEnd
0102 #  define inflateGetHeader      z_inflateGetHeader
0103 #  define inflateInit2_         z_inflateInit2_
0104 #  define inflateInit_          z_inflateInit_
0105 #  define inflateMark           z_inflateMark
0106 #  define inflatePrime          z_inflatePrime
0107 #  define inflateReset          z_inflateReset
0108 #  define inflateReset2         z_inflateReset2
0109 #  define inflateSetDictionary  z_inflateSetDictionary
0110 #  define inflateGetDictionary  z_inflateGetDictionary
0111 #  define inflateSync           z_inflateSync
0112 #  define inflateSyncPoint      z_inflateSyncPoint
0113 #  define inflateUndermine      z_inflateUndermine
0114 #  define inflateResetKeep      z_inflateResetKeep
0115 #  define inflate_copyright     z_inflate_copyright
0116 #  define inflate_fast          z_inflate_fast
0117 #  define inflate_table         z_inflate_table
0118 #  ifndef Z_SOLO
0119 #    define uncompress            z_uncompress
0120 #  endif
0121 #  define zError                z_zError
0122 #  ifndef Z_SOLO
0123 #    define zcalloc               z_zcalloc
0124 #    define zcfree                z_zcfree
0125 #  endif
0126 #  define zlibCompileFlags      z_zlibCompileFlags
0127 #  define zlibVersion           z_zlibVersion
0128 
0129 /* all zlib typedefs in zlib.h and zconf.h */
0130 #  define Byte                  z_Byte
0131 #  define Bytef                 z_Bytef
0132 #  define alloc_func            z_alloc_func
0133 #  define charf                 z_charf
0134 #  define free_func             z_free_func
0135 #  ifndef Z_SOLO
0136 #    define gzFile                z_gzFile
0137 #  endif
0138 #  define gz_header             z_gz_header
0139 #  define gz_headerp            z_gz_headerp
0140 #  define in_func               z_in_func
0141 #  define intf                  z_intf
0142 #  define out_func              z_out_func
0143 #  define uInt                  z_uInt
0144 #  define uIntf                 z_uIntf
0145 #  define uLong                 z_uLong
0146 #  define uLongf                z_uLongf
0147 #  define voidp                 z_voidp
0148 #  define voidpc                z_voidpc
0149 #  define voidpf                z_voidpf
0150 
0151 /* all zlib structs in zlib.h and zconf.h */
0152 #  define gz_header_s           z_gz_header_s
0153 #  define internal_state        z_internal_state
0154 
0155 #endif
0156 
0157 #if defined(__MSDOS__) && !defined(MSDOS)
0158 #  define MSDOS
0159 #endif
0160 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
0161 #  define OS2
0162 #endif
0163 #if defined(_WINDOWS) && !defined(WINDOWS)
0164 #  define WINDOWS
0165 #endif
0166 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
0167 #  ifndef WIN32
0168 #    define WIN32
0169 #  endif
0170 #endif
0171 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
0172 #  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
0173 #    ifndef SYS16BIT
0174 #      define SYS16BIT
0175 #    endif
0176 #  endif
0177 #endif
0178 
0179 /*
0180  * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
0181  * than 64k bytes at a time (needed on systems with 16-bit int).
0182  */
0183 #ifdef SYS16BIT
0184 #  define MAXSEG_64K
0185 #endif
0186 #ifdef MSDOS
0187 #  define UNALIGNED_OK
0188 #endif
0189 
0190 #ifdef __STDC_VERSION__
0191 #  ifndef STDC
0192 #    define STDC
0193 #  endif
0194 #  if __STDC_VERSION__ >= 199901L
0195 #    ifndef STDC99
0196 #      define STDC99
0197 #    endif
0198 #  endif
0199 #endif
0200 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
0201 #  define STDC
0202 #endif
0203 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
0204 #  define STDC
0205 #endif
0206 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
0207 #  define STDC
0208 #endif
0209 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
0210 #  define STDC
0211 #endif
0212 
0213 #if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
0214 #  define STDC
0215 #endif
0216 
0217 #ifndef STDC
0218 #  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
0219 #    define const       /* note: need a more gentle solution here */
0220 #  endif
0221 #endif
0222 
0223 #if defined(ZLIB_CONST) && !defined(z_const)
0224 #  define z_const const
0225 #else
0226 #  define z_const
0227 #endif
0228 
0229 /* Some Mac compilers merge all .h files incorrectly: */
0230 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
0231 #  define NO_DUMMY_DECL
0232 #endif
0233 
0234 /* Maximum value for memLevel in deflateInit2 */
0235 #ifndef MAX_MEM_LEVEL
0236 #  ifdef MAXSEG_64K
0237 #    define MAX_MEM_LEVEL 8
0238 #  else
0239 #    define MAX_MEM_LEVEL 9
0240 #  endif
0241 #endif
0242 
0243 /* Maximum value for windowBits in deflateInit2 and inflateInit2.
0244  * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
0245  * created by gzip. (Files created by minigzip can still be extracted by
0246  * gzip.)
0247  */
0248 #ifndef MAX_WBITS
0249 #  define MAX_WBITS   15 /* 32K LZ77 window */
0250 #endif
0251 
0252 /* The memory requirements for deflate are (in bytes):
0253             (1 << (windowBits+2)) +  (1 << (memLevel+9))
0254  that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
0255  plus a few kilobytes for small objects. For example, if you want to reduce
0256  the default memory requirements from 256K to 128K, compile with
0257      make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
0258  Of course this will generally degrade compression (there's no free lunch).
0259 
0260    The memory requirements for inflate are (in bytes) 1 << windowBits
0261  that is, 32K for windowBits=15 (default value) plus a few kilobytes
0262  for small objects.
0263 */
0264 
0265                         /* Type declarations */
0266 
0267 #ifndef OF /* function prototypes */
0268 #  ifdef STDC
0269 #    define OF(args)  args
0270 #  else
0271 #    define OF(args)  ()
0272 #  endif
0273 #endif
0274 
0275 #ifndef Z_ARG /* function prototypes for stdarg */
0276 #  if defined(STDC) || defined(Z_HAVE_STDARG_H)
0277 #    define Z_ARG(args)  args
0278 #  else
0279 #    define Z_ARG(args)  ()
0280 #  endif
0281 #endif
0282 
0283 /* The following definitions for FAR are needed only for MSDOS mixed
0284  * model programming (small or medium model with some far allocations).
0285  * This was tested only with MSC; for other MSDOS compilers you may have
0286  * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
0287  * just define FAR to be empty.
0288  */
0289 #ifdef SYS16BIT
0290 #  if defined(M_I86SM) || defined(M_I86MM)
0291      /* MSC small or medium model */
0292 #    define SMALL_MEDIUM
0293 #    ifdef _MSC_VER
0294 #      define FAR _far
0295 #    else
0296 #      define FAR far
0297 #    endif
0298 #  endif
0299 #  if (defined(__SMALL__) || defined(__MEDIUM__))
0300      /* Turbo C small or medium model */
0301 #    define SMALL_MEDIUM
0302 #    ifdef __BORLANDC__
0303 #      define FAR _far
0304 #    else
0305 #      define FAR far
0306 #    endif
0307 #  endif
0308 #endif
0309 
0310 #if defined(WINDOWS) || defined(WIN32)
0311    /* If building or using zlib as a DLL, define ZLIB_DLL.
0312     * This is not mandatory, but it offers a little performance increase.
0313     */
0314 #  ifdef ZLIB_DLL
0315 #    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
0316 #      ifdef ZLIB_INTERNAL
0317 #        define ZEXTERN extern __declspec(dllexport)
0318 #      else
0319 #        define ZEXTERN extern __declspec(dllimport)
0320 #      endif
0321 #    endif
0322 #  endif  /* ZLIB_DLL */
0323    /* If building or using zlib with the WINAPI/WINAPIV calling convention,
0324     * define ZLIB_WINAPI.
0325     * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
0326     */
0327 #  ifdef ZLIB_WINAPI
0328 #    ifdef FAR
0329 #      undef FAR
0330 #    endif
0331 #    include <windows.h>
0332      /* No need for _export, use ZLIB.DEF instead. */
0333      /* For complete Windows compatibility, use WINAPI, not __stdcall. */
0334 #    define ZEXPORT WINAPI
0335 #    ifdef WIN32
0336 #      define ZEXPORTVA WINAPIV
0337 #    else
0338 #      define ZEXPORTVA FAR CDECL
0339 #    endif
0340 #  endif
0341 #endif
0342 
0343 #if defined (__BEOS__)
0344 #  ifdef ZLIB_DLL
0345 #    ifdef ZLIB_INTERNAL
0346 #      define ZEXPORT   __declspec(dllexport)
0347 #      define ZEXPORTVA __declspec(dllexport)
0348 #    else
0349 #      define ZEXPORT   __declspec(dllimport)
0350 #      define ZEXPORTVA __declspec(dllimport)
0351 #    endif
0352 #  endif
0353 #endif
0354 
0355 #ifndef ZEXTERN
0356 #  define ZEXTERN extern
0357 #endif
0358 #ifndef ZEXPORT
0359 #  define ZEXPORT
0360 #endif
0361 #ifndef ZEXPORTVA
0362 #  define ZEXPORTVA
0363 #endif
0364 
0365 #ifndef FAR
0366 #  define FAR
0367 #endif
0368 
0369 #if !defined(__MACTYPES__)
0370 typedef unsigned char  Byte;  /* 8 bits */
0371 #endif
0372 typedef unsigned int   uInt;  /* 16 bits or more */
0373 typedef unsigned long  uLong; /* 32 bits or more */
0374 
0375 #ifdef SMALL_MEDIUM
0376    /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
0377 #  define Bytef Byte FAR
0378 #else
0379    typedef Byte  FAR Bytef;
0380 #endif
0381 typedef char  FAR charf;
0382 typedef int   FAR intf;
0383 typedef uInt  FAR uIntf;
0384 typedef uLong FAR uLongf;
0385 
0386 #ifdef STDC
0387    typedef void const *voidpc;
0388    typedef void FAR   *voidpf;
0389    typedef void       *voidp;
0390 #else
0391    typedef Byte const *voidpc;
0392    typedef Byte FAR   *voidpf;
0393    typedef Byte       *voidp;
0394 #endif
0395 
0396 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
0397 #  include <limits.h>
0398 #  if (UINT_MAX == 0xffffffffUL)
0399 #    define Z_U4 unsigned
0400 #  elif (ULONG_MAX == 0xffffffffUL)
0401 #    define Z_U4 unsigned long
0402 #  elif (USHRT_MAX == 0xffffffffUL)
0403 #    define Z_U4 unsigned short
0404 #  endif
0405 #endif
0406 
0407 #ifdef Z_U4
0408    typedef Z_U4 z_crc_t;
0409 #else
0410    typedef unsigned long z_crc_t;
0411 #endif
0412 
0413 #ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
0414 #  define Z_HAVE_UNISTD_H
0415 #endif
0416 
0417 #ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
0418 #  define Z_HAVE_STDARG_H
0419 #endif
0420 
0421 #ifdef STDC
0422 #  ifndef Z_SOLO
0423 #    include <sys/types.h>      /* for off_t */
0424 #  endif
0425 #endif
0426 
0427 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
0428 #  ifndef Z_SOLO
0429 #    include <stdarg.h>         /* for va_list */
0430 #  endif
0431 #endif
0432 
0433 #ifdef _WIN32
0434 #  ifndef Z_SOLO
0435 #    include <stddef.h>         /* for wchar_t */
0436 #  endif
0437 #endif
0438 
0439 /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
0440  * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
0441  * though the former does not conform to the LFS document), but considering
0442  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
0443  * equivalently requesting no 64-bit operations
0444  */
0445 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
0446 #  undef _LARGEFILE64_SOURCE
0447 #endif
0448 
0449 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
0450 #  define Z_HAVE_UNISTD_H
0451 #endif
0452 #ifndef Z_SOLO
0453 #  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
0454 #    include <unistd.h>         /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
0455 #    ifdef VMS
0456 #      include <unixio.h>       /* for off_t */
0457 #    endif
0458 #    ifndef z_off_t
0459 #      define z_off_t off_t
0460 #    endif
0461 #  endif
0462 #endif
0463 
0464 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
0465 #  define Z_LFS64
0466 #endif
0467 
0468 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
0469 #  define Z_LARGE64
0470 #endif
0471 
0472 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
0473 #  define Z_WANT64
0474 #endif
0475 
0476 #if !defined(SEEK_SET) && !defined(Z_SOLO)
0477 #  define SEEK_SET        0       /* Seek from beginning of file.  */
0478 #  define SEEK_CUR        1       /* Seek from current position.  */
0479 #  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
0480 #endif
0481 
0482 #ifndef z_off_t
0483 #  define z_off_t long
0484 #endif
0485 
0486 #if !defined(_WIN32) && defined(Z_LARGE64)
0487 #  define z_off64_t off64_t
0488 #else
0489 #  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
0490 #    define z_off64_t __int64
0491 #  else
0492 #    define z_off64_t z_off_t
0493 #  endif
0494 #endif
0495 
0496 /* MVS linker does not support external names larger than 8 bytes */
0497 #if defined(__MVS__)
0498   #pragma map(deflateInit_,"DEIN")
0499   #pragma map(deflateInit2_,"DEIN2")
0500   #pragma map(deflateEnd,"DEEND")
0501   #pragma map(deflateBound,"DEBND")
0502   #pragma map(inflateInit_,"ININ")
0503   #pragma map(inflateInit2_,"ININ2")
0504   #pragma map(inflateEnd,"INEND")
0505   #pragma map(inflateSync,"INSY")
0506   #pragma map(inflateSetDictionary,"INSEDI")
0507   #pragma map(compressBound,"CMBND")
0508   #pragma map(inflate_table,"INTABL")
0509   #pragma map(inflate_fast,"INFA")
0510   #pragma map(inflate_copyright,"INCOPY")
0511 #endif
0512 
0513 #endif /* ZCONF_H */