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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:19