Eneboo - Documentación para desarrolladores
src/qt/src/3rdparty/zlib/zconf.in.h
Ir a la documentación de este archivo.
00001 /* zconf.h -- configuration of the zlib compression library
00002  * Copyright (C) 1995-2004 Jean-loup Gailly.
00003  * For conditions of distribution and use, see copyright notice in zlib.h
00004  */
00005 
00006 /* @(#) $Id: qt/zconf.in.h   3.3.8   edited May 30 2004 $ */
00007 
00008 #ifndef ZCONF_H
00009 #define ZCONF_H
00010 
00011 /*
00012  * If you *really* need a unique prefix for all types and library functions,
00013  * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
00014  */
00015 #ifdef Z_PREFIX
00016 #  define deflateInit_          z_deflateInit_
00017 #  define deflate               z_deflate
00018 #  define deflateEnd            z_deflateEnd
00019 #  define inflateInit_          z_inflateInit_
00020 #  define inflate               z_inflate
00021 #  define inflateEnd            z_inflateEnd
00022 #  define deflateInit2_         z_deflateInit2_
00023 #  define deflateSetDictionary  z_deflateSetDictionary
00024 #  define deflateCopy           z_deflateCopy
00025 #  define deflateReset          z_deflateReset
00026 #  define deflateParams         z_deflateParams
00027 #  define deflateBound          z_deflateBound
00028 #  define deflatePrime          z_deflatePrime
00029 #  define inflateInit2_         z_inflateInit2_
00030 #  define inflateSetDictionary  z_inflateSetDictionary
00031 #  define inflateSync           z_inflateSync
00032 #  define inflateSyncPoint      z_inflateSyncPoint
00033 #  define inflateCopy           z_inflateCopy
00034 #  define inflateReset          z_inflateReset
00035 #  define inflateBack           z_inflateBack
00036 #  define inflateBackEnd        z_inflateBackEnd
00037 #  define compress              z_compress
00038 #  define compress2             z_compress2
00039 #  define compressBound         z_compressBound
00040 #  define uncompress            z_uncompress
00041 #  define adler32               z_adler32
00042 #  define crc32                 z_crc32
00043 #  define get_crc_table         z_get_crc_table
00044 #  define zError                z_zError
00045 
00046 #  define Byte                  z_Byte
00047 #  define uInt                  z_uInt
00048 #  define uLong                 z_uLong
00049 #  define Bytef                 z_Bytef
00050 #  define charf                 z_charf
00051 #  define intf                  z_intf
00052 #  define uIntf                 z_uIntf
00053 #  define uLongf                z_uLongf
00054 #  define voidpf                z_voidpf
00055 #  define voidp                 z_voidp
00056 #endif
00057 
00058 #if defined(__MSDOS__) && !defined(MSDOS)
00059 #  define MSDOS
00060 #endif
00061 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
00062 #  define OS2
00063 #endif
00064 #if defined(_WINDOWS) && !defined(WINDOWS)
00065 #  define WINDOWS
00066 #endif
00067 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
00068 #  define WIN32
00069 #endif
00070 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
00071 #  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
00072 #    ifndef SYS16BIT
00073 #      define SYS16BIT
00074 #    endif
00075 #  endif
00076 #endif
00077 
00078 /*
00079  * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
00080  * than 64k bytes at a time (needed on systems with 16-bit int).
00081  */
00082 #ifdef SYS16BIT
00083 #  define MAXSEG_64K
00084 #endif
00085 #ifdef MSDOS
00086 #  define UNALIGNED_OK
00087 #endif
00088 
00089 #ifdef __STDC_VERSION__
00090 #  ifndef STDC
00091 #    define STDC
00092 #  endif
00093 #  if __STDC_VERSION__ >= 199901L
00094 #    ifndef STDC99
00095 #      define STDC99
00096 #    endif
00097 #  endif
00098 #endif
00099 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
00100 #  define STDC
00101 #endif
00102 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
00103 #  define STDC
00104 #endif
00105 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
00106 #  define STDC
00107 #endif
00108 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
00109 #  define STDC
00110 #endif
00111 
00112 #if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
00113 #  define STDC
00114 #endif
00115 
00116 #ifndef STDC
00117 #  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
00118 #    define const       /* note: need a more gentle solution here */
00119 #  endif
00120 #endif
00121 
00122 /* Some Mac compilers merge all .h files incorrectly: */
00123 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
00124 #  define NO_DUMMY_DECL
00125 #endif
00126 
00127 /* Maximum value for memLevel in deflateInit2 */
00128 #ifndef MAX_MEM_LEVEL
00129 #  ifdef MAXSEG_64K
00130 #    define MAX_MEM_LEVEL 8
00131 #  else
00132 #    define MAX_MEM_LEVEL 9
00133 #  endif
00134 #endif
00135 
00136 /* Maximum value for windowBits in deflateInit2 and inflateInit2.
00137  * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
00138  * created by gzip. (Files created by minigzip can still be extracted by
00139  * gzip.)
00140  */
00141 #ifndef MAX_WBITS
00142 #  define MAX_WBITS   15 /* 32K LZ77 window */
00143 #endif
00144 
00145 /* The memory requirements for deflate are (in bytes):
00146             (1 << (windowBits+2)) +  (1 << (memLevel+9))
00147  that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
00148  plus a few kilobytes for small objects. For example, if you want to reduce
00149  the default memory requirements from 256K to 128K, compile with
00150      make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
00151  Of course this will generally degrade compression (there's no free lunch).
00152 
00153    The memory requirements for inflate are (in bytes) 1 << windowBits
00154  that is, 32K for windowBits=15 (default value) plus a few kilobytes
00155  for small objects.
00156 */
00157 
00158                         /* Type declarations */
00159 
00160 #ifndef OF /* function prototypes */
00161 #  ifdef STDC
00162 #    define OF(args)  args
00163 #  else
00164 #    define OF(args)  ()
00165 #  endif
00166 #endif
00167 
00168 /* The following definitions for FAR are needed only for MSDOS mixed
00169  * model programming (small or medium model with some far allocations).
00170  * This was tested only with MSC; for other MSDOS compilers you may have
00171  * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
00172  * just define FAR to be empty.
00173  */
00174 #ifdef SYS16BIT
00175 #  if defined(M_I86SM) || defined(M_I86MM)
00176      /* MSC small or medium model */
00177 #    define SMALL_MEDIUM
00178 #    ifdef _MSC_VER
00179 #      define FAR _far
00180 #    else
00181 #      define FAR far
00182 #    endif
00183 #  endif
00184 #  if (defined(__SMALL__) || defined(__MEDIUM__))
00185      /* Turbo C small or medium model */
00186 #    define SMALL_MEDIUM
00187 #    ifdef __BORLANDC__
00188 #      define FAR _far
00189 #    else
00190 #      define FAR far
00191 #    endif
00192 #  endif
00193 #endif
00194 
00195 #if defined(WINDOWS) || defined(WIN32)
00196    /* If building or using zlib as a DLL, define ZLIB_DLL.
00197     * This is not mandatory, but it offers a little performance increase.
00198     */
00199 #  ifdef ZLIB_DLL
00200 #    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
00201 #      ifdef ZLIB_INTERNAL
00202 #        define ZEXTERN extern __declspec(dllexport)
00203 #      else
00204 #        define ZEXTERN extern __declspec(dllimport)
00205 #      endif
00206 #    endif
00207 #  endif  /* ZLIB_DLL */
00208    /* If building or using zlib with the WINAPI/WINAPIV calling convention,
00209     * define ZLIB_WINAPI.
00210     * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
00211     */
00212 #  ifdef ZLIB_WINAPI
00213 #    ifdef FAR
00214 #      undef FAR
00215 #    endif
00216 #    include <windows.h>
00217      /* No need for _export, use ZLIB.DEF instead. */
00218      /* For complete Windows compatibility, use WINAPI, not __stdcall. */
00219 #    define ZEXPORT WINAPI
00220 #    ifdef WIN32
00221 #      define ZEXPORTVA WINAPIV
00222 #    else
00223 #      define ZEXPORTVA FAR CDECL
00224 #    endif
00225 #  endif
00226 #endif
00227 
00228 #if defined (__BEOS__)
00229 #  ifdef ZLIB_DLL
00230 #    ifdef ZLIB_INTERNAL
00231 #      define ZEXPORT   __declspec(dllexport)
00232 #      define ZEXPORTVA __declspec(dllexport)
00233 #    else
00234 #      define ZEXPORT   __declspec(dllimport)
00235 #      define ZEXPORTVA __declspec(dllimport)
00236 #    endif
00237 #  endif
00238 #endif
00239 
00240 #ifndef ZEXTERN
00241 #  define ZEXTERN extern
00242 #endif
00243 #ifndef ZEXPORT
00244 #  define ZEXPORT
00245 #endif
00246 #ifndef ZEXPORTVA
00247 #  define ZEXPORTVA
00248 #endif
00249 
00250 #ifndef FAR
00251 #  define FAR
00252 #endif
00253 
00254 #if !defined(__MACTYPES__)
00255 typedef unsigned char  Byte;  /* 8 bits */
00256 #endif
00257 typedef unsigned int   uInt;  /* 16 bits or more */
00258 typedef unsigned long  uLong; /* 32 bits or more */
00259 
00260 #ifdef SMALL_MEDIUM
00261    /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
00262 #  define Bytef Byte FAR
00263 #else
00264    typedef Byte  FAR Bytef;
00265 #endif
00266 typedef char  FAR charf;
00267 typedef int   FAR intf;
00268 typedef uInt  FAR uIntf;
00269 typedef uLong FAR uLongf;
00270 
00271 #ifdef STDC
00272    typedef void const *voidpc;
00273    typedef void FAR   *voidpf;
00274    typedef void       *voidp;
00275 #else
00276    typedef Byte const *voidpc;
00277    typedef Byte FAR   *voidpf;
00278    typedef Byte       *voidp;
00279 #endif
00280 
00281 #if 0           /* HAVE_UNISTD_H -- this line is updated by ./configure */
00282 #  include <sys/types.h> /* for off_t */
00283 #  include <unistd.h>    /* for SEEK_* and off_t */
00284 #  ifdef VMS
00285 #    include <unixio.h>   /* for off_t */
00286 #  endif
00287 #  define z_off_t off_t
00288 #endif
00289 #ifndef SEEK_SET
00290 #  define SEEK_SET        0       /* Seek from beginning of file.  */
00291 #  define SEEK_CUR        1       /* Seek from current position.  */
00292 #  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
00293 #endif
00294 #ifndef z_off_t
00295 #  define z_off_t long
00296 #endif
00297 
00298 #if defined(__OS400__)
00299 #  define NO_vsnprintf
00300 #endif
00301 
00302 #if defined(__MVS__)
00303 #  define NO_vsnprintf
00304 #  ifdef FAR
00305 #    undef FAR
00306 #  endif
00307 #endif
00308 
00309 /* MVS linker does not support external names larger than 8 bytes */
00310 #if defined(__MVS__)
00311 #   pragma map(deflateInit_,"DEIN")
00312 #   pragma map(deflateInit2_,"DEIN2")
00313 #   pragma map(deflateEnd,"DEEND")
00314 #   pragma map(deflateBound,"DEBND")
00315 #   pragma map(inflateInit_,"ININ")
00316 #   pragma map(inflateInit2_,"ININ2")
00317 #   pragma map(inflateEnd,"INEND")
00318 #   pragma map(inflateSync,"INSY")
00319 #   pragma map(inflateSetDictionary,"INSEDI")
00320 #   pragma map(compressBound,"CMBND")
00321 #   pragma map(inflate_table,"INTABL")
00322 #   pragma map(inflate_fast,"INFA")
00323 #   pragma map(inflate_copyright,"INCOPY")
00324 #endif
00325 
00326 #endif /* ZCONF_H */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'