123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- #ifndef ZCONF_H
- #define ZCONF_H
- #include "zlib_name_mangling.h"
- #if !defined(_WIN32) && defined(__WIN32__)
- # define _WIN32
- #endif
- #ifndef __has_declspec_attribute
- # define __has_declspec_attribute(x) 0
- #endif
- #if defined(ZLIB_CONST) && !defined(z_const)
- # define z_const const
- #else
- # define z_const
- #endif
- #ifndef MAX_MEM_LEVEL
- # define MAX_MEM_LEVEL 9
- #endif
- #ifndef MAX_WBITS
- # define MAX_WBITS 15
- #endif
- #ifndef OF
- # define OF(args) args
- #endif
- #ifdef ZLIB_INTERNAL
- # define Z_INTERNAL ZLIB_INTERNAL
- #endif
- #if defined(ZLIB_DLL) && (defined(_WIN32) || (__has_declspec_attribute(dllexport) && __has_declspec_attribute(dllimport)))
- # ifdef Z_INTERNAL
- # define Z_EXTERN extern __declspec(dllexport)
- # else
- # define Z_EXTERN extern __declspec(dllimport)
- # endif
- #endif
- #if defined(ZLIB_WINAPI) && defined(_WIN32)
- # include <windows.h>
-
-
- # define Z_EXPORT WINAPI
- # define Z_EXPORTVA WINAPIV
- #endif
- #ifndef Z_EXTERN
- # define Z_EXTERN extern
- #endif
- #ifndef Z_EXPORT
- # define Z_EXPORT
- #endif
- #ifndef Z_EXPORTVA
- # define Z_EXPORTVA
- #endif
- #define ZNG_CONDEXPORT Z_INTERNAL
- #ifndef ZEXTERN
- # define ZEXTERN Z_EXTERN
- #endif
- #ifndef ZEXPORT
- # define ZEXPORT Z_EXPORT
- #endif
- #ifndef ZEXPORTVA
- # define ZEXPORTVA Z_EXPORTVA
- #endif
- typedef unsigned char Byte;
- typedef Byte Bytef;
- typedef unsigned int uInt;
- typedef unsigned long uLong;
- typedef char charf;
- typedef int intf;
- typedef uInt uIntf;
- typedef uLong uLongf;
- typedef void const *voidpc;
- typedef void *voidpf;
- typedef void *voidp;
- typedef uint32_t z_crc_t;
- #if 0
- # define Z_HAVE_UNISTD_H
- #endif
- #ifdef NEED_PTRDIFF_T
- typedef PTRDIFF_TYPE ptrdiff_t;
- #endif
- #include <sys/types.h>
- #include <stddef.h>
- #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
- # undef _LARGEFILE64_SOURCE
- #endif
- #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
- # include <unistd.h>
- # ifndef z_off_t
- # define z_off_t off_t
- # endif
- #endif
- #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
- # define Z_LFS64
- #endif
- #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
- # define Z_LARGE64
- #endif
- #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
- # define Z_WANT64
- #endif
- #if !defined(SEEK_SET)
- # define SEEK_SET 0
- # define SEEK_CUR 1
- # define SEEK_END 2
- #endif
- #ifndef z_off_t
- # define z_off_t long
- #endif
- #if !defined(_WIN32) && defined(Z_LARGE64)
- # define z_off64_t off64_t
- #else
- # if defined(__MSYS__)
- # define z_off64_t _off64_t
- # elif defined(_WIN32) && !defined(__GNUC__)
- # define z_off64_t __int64
- # else
- # define z_off64_t z_off_t
- # endif
- #endif
- #endif
|