/* zconf.h -- configuration of the zlib compression library *Copyright(C)1995-2016Jean-loupGailly,MarkAdler *Forconditionsofdistributionanduse,seecopyrightnoticeinzlib.h
*/
/* @(#) $Id$ */
#ifndef ZCONF_H #define ZCONF_H
/* *Ifyou*really*needauniqueprefixforalltypesandlibraryfunctions, *compilewith-DZ_PREFIX.The"standard"zlibshouldbecompiledwithoutit. *Evenbetterthancompilingwith-DZ_PREFIXwouldbetouseconfiguretoset *thispermanentlyinzconf.husing"./configure--zprefix".
*/ #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ # define Z_PREFIX_SET
#ifndef STDC # ifndef const/* cannot use !defined(STDC) && !defined(const) on Mac */ # define const/* note: need a more gentle solution here */ # endif #endif
/* Maximum value for memLevel in deflateInit2 */ #ifndef MAX_MEM_LEVEL # ifdef MAXSEG_64K # define MAX_MEM_LEVEL 8 # else # define MAX_MEM_LEVEL 9 # endif #endif
/* Maximum value for windowBits in deflateInit2 and inflateInit2. *WARNING:reducingMAX_WBITSmakesminigzipunabletoextract.gzfiles *createdbygzip.(Filescreatedbyminigzipcanstillbeextractedby *gzip.)
*/ #ifndef MAX_WBITS # define MAX_WBITS 15/* 32K LZ77 window */ #endif
/* The memory requirements for deflate are (in bytes): (1<<(windowBits+2))+(1<<(memLevel+9)) thatis:128KforwindowBits=15+128KformemLevel=8(defaultvalues) plusafewkilobytesforsmallobjects.Forexample,ifyouwanttoreduce thedefaultmemoryrequirementsfrom256Kto128K,compilewith makeCFLAGS="-O-DMAX_WBITS=14-DMAX_MEM_LEVEL=7" Ofcoursethiswillgenerallydegradecompression(there'snofreelunch).
/* The following definitions for FAR are needed only for MSDOS mixed *modelprogramming(smallormediummodelwithsomefarallocations). *ThiswastestedonlywithMSC;forotherMSDOScompilersyoumayhave *todefineNO_MEMCPYinzutil.h.Ifyoudon'tneedthemixedmodel, *justdefineFARtobeempty.
*/ #ifdef SYS16BIT # ifdefined(M_I86SM) || defined(M_I86MM) /* MSC small or medium model */ # define SMALL_MEDIUM # ifdef _MSC_VER # define FAR _far # else # define FAR far # endif # endif # if (defined(__SMALL__) || defined(__MEDIUM__)) /* Turbo C small or medium model */ # define SMALL_MEDIUM # ifdef __BORLANDC__ # define FAR _far # else # define FAR far # endif # endif #endif
#ifdefined(WINDOWS) || defined(WIN32) /* If building or using zlib as a DLL, define ZLIB_DLL. *Thisisnotmandatory,butitoffersalittleperformanceincrease.
*/ # ifdef ZLIB_DLL # ifdefined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) # ifdef ZLIB_INTERNAL # define ZEXTERN extern __declspec(dllexport) # else # define ZEXTERN extern __declspec(dllimport) # endif # endif # endif /* ZLIB_DLL */ /* If building or using zlib with the WINAPI/WINAPIV calling convention, *defineZLIB_WINAPI. *Caution:thestandardZLIB1.DLLisNOTcompiledusingZLIB_WINAPI.
*/ # ifdef ZLIB_WINAPI # ifdef FAR # undef FAR # endif # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif # include <windows.h> /* No need for _export, use ZLIB.DEF instead. */ /* For complete Windows compatibility, use WINAPI, not __stdcall. */ # define ZEXPORT WINAPI # ifdef WIN32 # define ZEXPORTVA WINAPIV # else # define ZEXPORTVA FAR CDECL # endif # endif #endif
#if !defined(__MACTYPES__) typedefunsignedchar Byte; /* 8 bits */ #endif typedefunsignedint uInt; /* 16 bits or more */ typedefunsignedlong uLong; /* 32 bits or more */
#ifdef SMALL_MEDIUM /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ # define Bytef Byte FAR #else typedef Byte FAR Bytef; #endif typedefchar FAR charf; typedefint FAR intf; typedef uInt FAR uIntf; typedef uLong FAR uLongf;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.