1.1 --- a/epoc32/include/stdapis/zconf.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,374 +0,0 @@
1.4 -/* zconf.h -- configuration of the zlib compression library
1.5 - * Copyright (C) 1995-2005 Jean-loup Gailly.
1.6 - * For conditions of distribution and use, see copyright notice in zlib.h
1.7 - */
1.8 -
1.9 -/* @(#) $Id: zconf.h,v 1.1.2.1 2008/08/14 15:26:57 e0222316 Exp $ */
1.10 -
1.11 -#ifndef _ZCONF_H
1.12 -#define _ZCONF_H
1.13 -
1.14 -#if (defined(__TOOLS2__) || defined(__TOOLS__))
1.15 - /** Defined as nothing for tools builds, as EXPORT_C keyword not supported on these platforms */
1.16 - #define EXPORT_C
1.17 -#else
1.18 -#ifdef __SYMBIAN32__
1.19 - #include <e32def.h> /* Include for definition of IMPORT_C below */
1.20 - /** This macro is used in function prototypes in zlib.h and libzcore.h. Use Symbian definition IMPORT_C instead of ZEXTERN */
1.21 - #define ZEXTERN IMPORT_C
1.22 - /** This macro is used for EZLIB component */
1.23 - #define SYMBIAN_EZLIB_DEVICE
1.24 -#endif /* __SYMBIAN32__ */
1.25 -#endif /* __TOOLS2__ || __TOOLS__ */
1.26 -
1.27 -
1.28 -/*
1.29 - * If you *really* need a unique prefix for all types and library functions,
1.30 - * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
1.31 - */
1.32 -#ifdef Z_PREFIX
1.33 -# define deflateInit_ z_deflateInit_
1.34 -# define deflate z_deflate
1.35 -# define deflateEnd z_deflateEnd
1.36 -# define inflateInit_ z_inflateInit_
1.37 -# define inflate z_inflate
1.38 -# define inflateEnd z_inflateEnd
1.39 -# define deflateInit2_ z_deflateInit2_
1.40 -# define deflateSetDictionary z_deflateSetDictionary
1.41 -# define deflateCopy z_deflateCopy
1.42 -# define deflateReset z_deflateReset
1.43 -# define deflateParams z_deflateParams
1.44 -# define deflateBound z_deflateBound
1.45 -# define deflatePrime z_deflatePrime
1.46 -# define inflateInit2_ z_inflateInit2_
1.47 -# define inflateSetDictionary z_inflateSetDictionary
1.48 -# define inflateSync z_inflateSync
1.49 -# define inflateSyncPoint z_inflateSyncPoint
1.50 -# define inflateCopy z_inflateCopy
1.51 -# define inflateReset z_inflateReset
1.52 -# define inflateBack z_inflateBack
1.53 -# define inflateBackEnd z_inflateBackEnd
1.54 -# define compress z_compress
1.55 -# define compress2 z_compress2
1.56 -# define compressBound z_compressBound
1.57 -# define uncompress z_uncompress
1.58 -# define adler32 z_adler32
1.59 -# define crc32 z_crc32
1.60 -# define get_crc_table z_get_crc_table
1.61 -# define zError z_zError
1.62 -
1.63 -# define alloc_func z_alloc_func
1.64 -# define free_func z_free_func
1.65 -# define in_func z_in_func
1.66 -# define out_func z_out_func
1.67 -# define Byte z_Byte
1.68 -# define uInt z_uInt
1.69 -# define uLong z_uLong
1.70 -# define Bytef z_Bytef
1.71 -# define charf z_charf
1.72 -# define intf z_intf
1.73 -# define uIntf z_uIntf
1.74 -# define uLongf z_uLongf
1.75 -# define voidpf z_voidpf
1.76 -# define voidp z_voidp
1.77 -#endif
1.78 -
1.79 -#if defined(__MSDOS__) && !defined(MSDOS)
1.80 -# define MSDOS
1.81 -#endif
1.82 -#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
1.83 -# define OS2
1.84 -#endif
1.85 -#if defined(_WINDOWS) && !defined(WINDOWS)
1.86 -# define WINDOWS
1.87 -#endif
1.88 -#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
1.89 -# ifndef WIN32
1.90 -# define WIN32
1.91 -# endif
1.92 -#endif
1.93 -#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
1.94 -# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
1.95 -# ifndef SYS16BIT
1.96 -# define SYS16BIT
1.97 -# endif
1.98 -# endif
1.99 -#endif
1.100 -
1.101 -/*
1.102 - * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
1.103 - * than 64k bytes at a time (needed on systems with 16-bit int).
1.104 - */
1.105 -#ifdef SYS16BIT
1.106 -# define MAXSEG_64K
1.107 -#endif
1.108 -#ifdef MSDOS
1.109 -# define UNALIGNED_OK
1.110 -#endif
1.111 -
1.112 -#ifdef __STDC_VERSION__
1.113 -# ifndef STDC
1.114 -# define STDC
1.115 -# endif
1.116 -# if __STDC_VERSION__ >= 199901L
1.117 -# ifndef STDC99
1.118 -# define STDC99
1.119 -# endif
1.120 -# endif
1.121 -#endif
1.122 -#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
1.123 -/** define STDC i.e. Standard C */
1.124 -# define STDC
1.125 -#endif
1.126 -#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
1.127 -# define STDC
1.128 -#endif
1.129 -#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
1.130 -# define STDC
1.131 -#endif
1.132 -#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
1.133 -# define STDC
1.134 -#endif
1.135 -
1.136 -#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
1.137 -# define STDC
1.138 -#endif
1.139 -
1.140 -#ifndef STDC
1.141 -# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
1.142 -# define const /* note: need a more gentle solution here */
1.143 -# endif
1.144 -#endif
1.145 -
1.146 -/* Some Mac compilers merge all .h files incorrectly: */
1.147 -#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
1.148 -# define NO_DUMMY_DECL
1.149 -#endif
1.150 -
1.151 -#ifndef MAX_MEM_LEVEL
1.152 -# ifdef MAXSEG_64K
1.153 -/** Maximum value for memLevel in deflateInit2 */
1.154 -# define MAX_MEM_LEVEL 8
1.155 -# else
1.156 -/** Maximum value for memLevel in deflateInit2 */
1.157 -# define MAX_MEM_LEVEL 9
1.158 -# endif
1.159 -#endif
1.160 -
1.161 -/* Maximum value for windowBits in deflateInit2 and inflateInit2.
1.162 - * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
1.163 - * created by gzip. (Files created by minigzip can still be extracted by
1.164 - * gzip.)
1.165 - */
1.166 -#ifndef MAX_WBITS
1.167 -/** 32K LZ77 window */
1.168 -# define MAX_WBITS 15
1.169 -#endif
1.170 -
1.171 -/* The memory requirements for deflate are (in bytes):
1.172 - (1 << (windowBits+2)) + (1 << (memLevel+9))
1.173 - that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
1.174 - plus a few kilobytes for small objects. For example, if you want to reduce
1.175 - the default memory requirements from 256K to 128K, compile with
1.176 - make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
1.177 - Of course this will generally degrade compression (there's no free lunch).
1.178 -
1.179 - The memory requirements for inflate are (in bytes) 1 << windowBits
1.180 - that is, 32K for windowBits=15 (default value) plus a few kilobytes
1.181 - for small objects.
1.182 -*/
1.183 -
1.184 - /* Type declarations */
1.185 -
1.186 -#ifndef OF /* function prototypes */
1.187 -# ifdef STDC
1.188 -/**
1.189 - Function prototypes
1.190 - @param args arguments ...
1.191 -*/
1.192 -# define OF(args) args
1.193 -# else
1.194 -/** Function prototypes */
1.195 -# define OF(args) ()
1.196 -# endif
1.197 -#endif
1.198 -
1.199 -/* The following definitions for FAR are needed only for MSDOS mixed
1.200 - * model programming (small or medium model with some far allocations).
1.201 - * This was tested only with MSC; for other MSDOS compilers you may have
1.202 - * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
1.203 - * just define FAR to be empty.
1.204 - */
1.205 -#ifdef SYS16BIT
1.206 -# if defined(M_I86SM) || defined(M_I86MM)
1.207 - /* MSC small or medium model */
1.208 -# define SMALL_MEDIUM
1.209 -# ifdef _MSC_VER
1.210 -# define FAR _far
1.211 -# else
1.212 -# define FAR far
1.213 -# endif
1.214 -# endif
1.215 -# if (defined(__SMALL__) || defined(__MEDIUM__))
1.216 - /* Turbo C small or medium model */
1.217 -# define SMALL_MEDIUM
1.218 -# ifdef __BORLANDC__
1.219 -# define FAR _far
1.220 -# else
1.221 -# define FAR far
1.222 -# endif
1.223 -# endif
1.224 -#endif
1.225 -
1.226 -#if defined(WINDOWS) || defined(WIN32)
1.227 - /* If building or using zlib as a DLL, define ZLIB_DLL.
1.228 - * This is not mandatory, but it offers a little performance increase.
1.229 - */
1.230 -# ifdef ZLIB_DLL
1.231 -# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
1.232 -# ifdef ZLIB_INTERNAL
1.233 -# define ZEXTERN extern __declspec(dllexport)
1.234 -# else
1.235 -# define ZEXTERN extern __declspec(dllimport)
1.236 -# endif
1.237 -# endif
1.238 -# endif /* ZLIB_DLL */
1.239 - /* If building or using zlib with the WINAPI/WINAPIV calling convention,
1.240 - * define ZLIB_WINAPI.
1.241 - * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
1.242 - */
1.243 -# ifdef ZLIB_WINAPI
1.244 -# ifdef FAR
1.245 -# undef FAR
1.246 -# endif
1.247 -# include <windows.h>
1.248 - /* No need for _export, use ZLIB.DEF instead. */
1.249 - /* For complete Windows compatibility, use WINAPI, not __stdcall. */
1.250 -# define ZEXPORT WINAPI
1.251 -# ifdef WIN32
1.252 -# define ZEXPORTVA WINAPIV
1.253 -# else
1.254 -# define ZEXPORTVA FAR CDECL
1.255 -# endif
1.256 -# endif
1.257 -#endif
1.258 -
1.259 -#if defined (__BEOS__)
1.260 -# ifdef ZLIB_DLL
1.261 -# ifdef ZLIB_INTERNAL
1.262 -# define ZEXPORT __declspec(dllexport)
1.263 -# define ZEXPORTVA __declspec(dllexport)
1.264 -# else
1.265 -# define ZEXPORT __declspec(dllimport)
1.266 -# define ZEXPORTVA __declspec(dllimport)
1.267 -# endif
1.268 -# endif
1.269 -#endif
1.270 -
1.271 -#ifndef ZEXTERN
1.272 -/** extern defined as ZEXTERN */
1.273 -# define ZEXTERN extern
1.274 -#endif
1.275 -#ifndef ZEXPORT
1.276 -# define ZEXPORT
1.277 -#endif
1.278 -#ifndef ZEXPORTVA
1.279 -# define ZEXPORTVA
1.280 -#endif
1.281 -
1.282 -
1.283 -#ifndef FAR
1.284 -# define FAR
1.285 -#endif
1.286 -
1.287 -#if !defined(__MACTYPES__)
1.288 -/** 8 bits */
1.289 -typedef unsigned char Byte;
1.290 -#endif
1.291 -/** 16 bits or more */
1.292 -typedef unsigned int uInt;
1.293 -/** 32 bits or more */
1.294 -typedef unsigned long uLong;
1.295 -
1.296 -#ifdef SMALL_MEDIUM
1.297 - /** Borland C/C++ and some old MSC versions ignore FAR inside typedef */
1.298 -# define Bytef Byte FAR
1.299 -#else
1.300 - /** Borland C/C++ and some old MSC versions ignore FAR inside typedef */
1.301 - typedef Byte FAR Bytef;
1.302 -#endif
1.303 -/** char typedef to charf */
1.304 -typedef char FAR charf;
1.305 -/** int typedef to intf */
1.306 -typedef int FAR intf;
1.307 -/** uInt typedef to uIntf */
1.308 -typedef uInt FAR uIntf;
1.309 -/** uLong typedef to uLongf */
1.310 -typedef uLong FAR uLongf;
1.311 -
1.312 -#ifdef STDC
1.313 - /** typedef void const* to voidpc */
1.314 - typedef void const *voidpc;
1.315 - /** typedef void FAR* to voidpf */
1.316 - typedef void FAR *voidpf;
1.317 - /** typedef void* to voidp */
1.318 - typedef void *voidp;
1.319 -#else
1.320 - /** typedef Byte const* to voidpc */
1.321 - typedef Byte const *voidpc;
1.322 - /** typedef Byte FAR* to voidpf */
1.323 - typedef Byte FAR *voidpf;
1.324 - /** typedef Byte* to voidp */
1.325 - typedef Byte *voidp;
1.326 -#endif
1.327 -
1.328 -#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */
1.329 -# include <sys/types.h> /* for off_t */
1.330 -# include <unistd.h> /* for SEEK_* and off_t */
1.331 -# ifdef VMS
1.332 -# include <unixio.h> /* for off_t */
1.333 -# endif
1.334 -# define z_off_t off_t
1.335 -#endif
1.336 -#ifndef SEEK_SET
1.337 -/** Seek from beginning of file. */
1.338 -# define SEEK_SET 0
1.339 -/** Seek from current position. */
1.340 -# define SEEK_CUR 1
1.341 -/** Set file pointer to EOF plus "offset" */
1.342 -# define SEEK_END 2
1.343 -#endif
1.344 -#ifndef z_off_t
1.345 -/** define z_off_t as long */
1.346 -# define z_off_t long
1.347 -#endif
1.348 -
1.349 -#if defined(__OS400__)
1.350 -# define NO_vsnprintf
1.351 -#endif
1.352 -
1.353 -#if defined(__MVS__)
1.354 -# define NO_vsnprintf
1.355 -# ifdef FAR
1.356 -# undef FAR
1.357 -# endif
1.358 -#endif
1.359 -
1.360 -/* MVS linker does not support external names larger than 8 bytes */
1.361 -#if defined(__MVS__)
1.362 -# pragma map(deflateInit_,"DEIN")
1.363 -# pragma map(deflateInit2_,"DEIN2")
1.364 -# pragma map(deflateEnd,"DEEND")
1.365 -# pragma map(deflateBound,"DEBND")
1.366 -# pragma map(inflateInit_,"ININ")
1.367 -# pragma map(inflateInit2_,"ININ2")
1.368 -# pragma map(inflateEnd,"INEND")
1.369 -# pragma map(inflateSync,"INSY")
1.370 -# pragma map(inflateSetDictionary,"INSEDI")
1.371 -# pragma map(compressBound,"CMBND")
1.372 -# pragma map(inflate_table,"INTABL")
1.373 -# pragma map(inflate_fast,"INFA")
1.374 -# pragma map(inflate_copyright,"INCOPY")
1.375 -#endif
1.376 -
1.377 -#endif /* _ZCONF_H */