epoc32/include/ezconf.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
     1.1 --- a/epoc32/include/ezconf.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/ezconf.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,310 +1,28 @@
     1.4 -/* zconf.h -- configuration of the zlib compression library
     1.5 - * Copyright (C) 1995-1998 Jean-loup Gailly.
     1.6 - * For conditions of distribution and use, see copyright notice in zlib.h 
     1.7 - */
     1.8 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.9 +// All rights reserved.
    1.10 +// This component and the accompanying materials are made available
    1.11 +// under the terms of "Eclipse Public License v1.0"
    1.12 +// which accompanies this distribution, and is available
    1.13 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.14 +//
    1.15 +// Initial Contributors:
    1.16 +// Nokia Corporation - initial contribution.
    1.17 +//
    1.18 +// Contributors:
    1.19 +//
    1.20 +// Description:
    1.21 +//
    1.22  
    1.23 -/**
    1.24 +#ifndef EZCONF_H
    1.25 +#define EZCONF_H
    1.26 +
    1.27 +/** 
    1.28  @file
    1.29 -Contains macro definitions for ezlib library (included from EZlib.h)
    1.30 -@internalAll
    1.31 +@publishedAll
    1.32 +@externallyDefinedApi
    1.33  */
    1.34  
    1.35 -/* @(#) $Id$ */
    1.36 +#include <zconf.h>
    1.37  
    1.38 -#ifndef _ZCONF_H
    1.39 -#define _ZCONF_H
    1.40 +#endif // EZCONF_H
    1.41  
    1.42 -/*
    1.43 - * If you *really* need a unique prefix for all types and library functions,
    1.44 - * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
    1.45 - */
    1.46 -#ifdef Z_PREFIX
    1.47 -#  define deflateInit_	z_deflateInit_
    1.48 -#  define deflate	z_deflate
    1.49 -#  define deflateEnd	z_deflateEnd
    1.50 -#  define inflateInit_ 	z_inflateInit_
    1.51 -#  define inflate	z_inflate
    1.52 -#  define inflateEnd	z_inflateEnd
    1.53 -#  define deflateInit2_	z_deflateInit2_
    1.54 -#  define deflateSetDictionary z_deflateSetDictionary
    1.55 -#  define deflateCopy	z_deflateCopy
    1.56 -#  define deflateReset	z_deflateReset
    1.57 -#  define deflateParams	z_deflateParams
    1.58 -#  define inflateInit2_	z_inflateInit2_
    1.59 -#  define inflateSetDictionary z_inflateSetDictionary
    1.60 -#  define inflateSync	z_inflateSync
    1.61 -#  define inflateSyncPoint z_inflateSyncPoint
    1.62 -#  define inflateReset	z_inflateReset
    1.63 -#  define compress	z_compress
    1.64 -#  define compress2	z_compress2
    1.65 -#  define uncompress	z_uncompress
    1.66 -#  define adler32	z_adler32
    1.67 -#  define crc32		z_crc32
    1.68 -#  define get_crc_table z_get_crc_table
    1.69 -
    1.70 -#  define Byte		z_Byte
    1.71 -#  define uInt		z_uInt
    1.72 -#  define uLong		z_uLong
    1.73 -#  define Bytef	        z_Bytef
    1.74 -#  define charf		z_charf
    1.75 -#  define intf		z_intf
    1.76 -#  define uIntf		z_uIntf
    1.77 -#  define uLongf	z_uLongf
    1.78 -#  define voidpf	z_voidpf
    1.79 -#  define voidp		z_voidp
    1.80 -#endif
    1.81 -
    1.82 -#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
    1.83 -#  define WIN32
    1.84 -#endif
    1.85 -#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
    1.86 -#  ifndef __32BIT__
    1.87 -#    define __32BIT__
    1.88 -#  endif
    1.89 -#endif
    1.90 -#if defined(__MSDOS__) && !defined(MSDOS)
    1.91 -#  define MSDOS
    1.92 -#endif
    1.93 -
    1.94 -/*
    1.95 - * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
    1.96 - * than 64k bytes at a time (needed on systems with 16-bit int).
    1.97 - */
    1.98 -#if defined(MSDOS) && !defined(__32BIT__)
    1.99 -#  define MAXSEG_64K
   1.100 -#endif
   1.101 -#ifdef MSDOS
   1.102 -#  define UNALIGNED_OK
   1.103 -#endif
   1.104 -
   1.105 -#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32))  && !defined(STDC)
   1.106 -#  define STDC
   1.107 -#endif
   1.108 -#if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
   1.109 -#  ifndef STDC
   1.110 -#    define STDC
   1.111 -#  endif
   1.112 -#endif
   1.113 -
   1.114 -#ifndef STDC
   1.115 -#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
   1.116 -#    define const
   1.117 -#  endif
   1.118 -#endif
   1.119 -
   1.120 -/* Some Mac compilers merge all .h files incorrectly: */
   1.121 -#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
   1.122 -#  define NO_DUMMY_DECL
   1.123 -#endif
   1.124 -
   1.125 -/* Old Borland C incorrectly complains about missing returns: */
   1.126 -#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
   1.127 -#  define NEED_DUMMY_RETURN
   1.128 -#endif
   1.129 -
   1.130 -
   1.131 -/* Maximum value for memLevel in deflateInit2 */
   1.132 -#ifndef MAX_MEM_LEVEL
   1.133 -#  ifdef MAXSEG_64K
   1.134 -#    define MAX_MEM_LEVEL 8
   1.135 -#  else
   1.136 -#    define MAX_MEM_LEVEL 9
   1.137 -#  endif
   1.138 -#endif
   1.139 -
   1.140 -/** 
   1.141 -Maximum value for windowBits in deflateInit2 and inflateInit2.
   1.142 -WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
   1.143 -created by gzip. (Files created by minigzip can still be extracted by
   1.144 -gzip.)
   1.145 -@publishedPartner
   1.146 -@externallyDefinedApi  
   1.147 -*/
   1.148 -#ifndef MAX_WBITS
   1.149 -#  define MAX_WBITS   15 /* 32K LZ77 window */
   1.150 -#endif
   1.151 -
   1.152 -/* The memory requirements for deflate are (in bytes):
   1.153 -            (1 << (windowBits+2)) +  (1 << (memLevel+9))
   1.154 - that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
   1.155 - plus a few kilobytes for small objects. For example, if you want to reduce
   1.156 - the default memory requirements from 256K to 128K, compile with
   1.157 -     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
   1.158 - Of course this will generally degrade compression (there's no free lunch).
   1.159 -
   1.160 -   The memory requirements for inflate are (in bytes) 1 << windowBits
   1.161 - that is, 32K for windowBits=15 (default value) plus a few kilobytes
   1.162 - for small objects.
   1.163 -*/
   1.164 -
   1.165 -                        /* Type declarations */
   1.166 -
   1.167 -#ifndef OF /* function prototypes */
   1.168 -#  ifdef STDC
   1.169 -#    define OF(args)  args
   1.170 -#  else
   1.171 -#    define OF(args)  ()
   1.172 -#  endif
   1.173 -#endif
   1.174 -
   1.175 -/* The following definitions for FAR are needed only for MSDOS mixed
   1.176 - * model programming (small or medium model with some far allocations).
   1.177 - * This was tested only with MSC; for other MSDOS compilers you may have
   1.178 - * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
   1.179 - * just define FAR to be empty.
   1.180 - */
   1.181 -#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
   1.182 -   /* MSC small or medium model */
   1.183 -#  define SMALL_MEDIUM
   1.184 -#  ifdef _MSC_VER
   1.185 -#    define FAR _far
   1.186 -#  else
   1.187 -#    define FAR far
   1.188 -#  endif
   1.189 -#endif
   1.190 -#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
   1.191 -#  ifndef __32BIT__
   1.192 -#    define SMALL_MEDIUM
   1.193 -#    define FAR _far
   1.194 -#  endif
   1.195 -#endif
   1.196 -
   1.197 -/* Compile with -DZLIB_DLL for Windows DLL support */
   1.198 -#if defined(ZLIB_DLL)
   1.199 -#  if defined(_WINDOWS) || defined(WINDOWS)
   1.200 -#    ifdef FAR
   1.201 -#      undef FAR
   1.202 -#    endif
   1.203 -#    include <windows.h>
   1.204 -#    define ZEXPORT  WINAPI
   1.205 -#    ifdef WIN32
   1.206 -#      define ZEXPORTVA  WINAPIV
   1.207 -#    else
   1.208 -#      define ZEXPORTVA  FAR _cdecl _export
   1.209 -#    endif
   1.210 -#  endif
   1.211 -#  if defined (__BORLANDC__)
   1.212 -#    if (__BORLANDC__ >= 0x0500) && defined (WIN32)
   1.213 -#      include <windows.h>
   1.214 -#      define ZEXPORT __declspec(dllexport) WINAPI
   1.215 -#      define ZEXPORTRVA __declspec(dllexport) WINAPIV
   1.216 -#    else
   1.217 -#      if defined (_Windows) && defined (__DLL__)
   1.218 -#        define ZEXPORT _export
   1.219 -#        define ZEXPORTVA _export
   1.220 -#      endif
   1.221 -#    endif
   1.222 -#  endif
   1.223 -#endif
   1.224 -
   1.225 -#if defined (__BEOS__)
   1.226 -#  if defined (ZLIB_DLL)
   1.227 -#    define ZEXTERN extern __declspec(dllexport)
   1.228 -#  else
   1.229 -#    define ZEXTERN extern __declspec(dllimport)
   1.230 -#  endif
   1.231 -#endif
   1.232 -
   1.233 -#ifndef ZEXPORT
   1.234 -#  define ZEXPORT
   1.235 -#endif
   1.236 -#ifndef ZEXPORTVA
   1.237 -#  define ZEXPORTVA
   1.238 -#endif
   1.239 -#ifndef ZEXTERN
   1.240 -#  ifdef __VC32__
   1.241 -#    define ZEXTERN extern __declspec(dllexport)
   1.242 -#  endif
   1.243 -#  ifdef __CW32__
   1.244 -#    define ZEXTERN extern __declspec(dllexport)
   1.245 -#  endif
   1.246 -#  ifdef __GCC32__
   1.247 -#    define ZEXTERN extern
   1.248 -#  endif
   1.249 -#  ifdef __GCCE__
   1.250 -#    define ZEXTERN extern
   1.251 -#  endif
   1.252 -#  ifdef __ARMCC__
   1.253 -#    define ZEXTERN extern __declspec(dllimport)
   1.254 -#  endif
   1.255 -#endif
   1.256 -#ifndef EXPORT_C
   1.257 -#  define EXPORT_C __declspec(dllexport)
   1.258 -#endif
   1.259 -
   1.260 -#ifndef FAR
   1.261 -#   define FAR
   1.262 -#endif
   1.263 -
   1.264 -#if !defined(MACOS) && !defined(TARGET_OS_MAC)
   1.265 -typedef unsigned char  Byte;  /* 8 bits */
   1.266 -#endif
   1.267 -typedef unsigned int   uInt;  /* 16 bits or more */
   1.268 -/**
   1.269 -32-bits or more unsigned integer for use in the zlib.h API.
   1.270 -@publishedPartner
   1.271 -@externallyDefinedApi 
   1.272 -*/
   1.273 -typedef unsigned long  uLong; /* 32 bits or more */
   1.274 -
   1.275 -#ifdef SMALL_MEDIUM
   1.276 -   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
   1.277 -#  define Bytef Byte FAR
   1.278 -#else
   1.279 -   typedef Byte  FAR Bytef;
   1.280 -#endif
   1.281 -typedef char  FAR charf;
   1.282 -typedef int   FAR intf;
   1.283 -typedef uInt  FAR uIntf;
   1.284 -typedef uLong FAR uLongf;
   1.285 -
   1.286 -#ifdef STDC
   1.287 -   typedef void FAR *voidpf;
   1.288 -   typedef void     *voidp;
   1.289 -#else
   1.290 -   typedef Byte FAR *voidpf;
   1.291 -   typedef Byte     *voidp;
   1.292 -#endif
   1.293 -
   1.294 -#ifdef HAVE_UNISTD_H
   1.295 -//#  include <sys/types.h> /* for off_t */
   1.296 -//#  include <unistd.h>    /* for SEEK_* and off_t */
   1.297 -#  define z_off_t  off_t
   1.298 -#endif
   1.299 -#ifndef SEEK_SET
   1.300 -#  define SEEK_SET        0       /* Seek from beginning of file.  */
   1.301 -#  define SEEK_CUR        1       /* Seek from current position.  */
   1.302 -#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
   1.303 -#endif
   1.304 -#ifndef z_off_t
   1.305 -#  define  z_off_t long
   1.306 -#endif
   1.307 -
   1.308 -/* MVS linker does not support external names larger than 8 bytes */
   1.309 -#if defined(__MVS__)
   1.310 -#   pragma map(deflateInit_,"DEIN")
   1.311 -#   pragma map(deflateInit2_,"DEIN2")
   1.312 -#   pragma map(deflateEnd,"DEEND")
   1.313 -#   pragma map(inflateInit_,"ININ")
   1.314 -#   pragma map(inflateInit2_,"ININ2")
   1.315 -#   pragma map(inflateEnd,"INEND")
   1.316 -#   pragma map(inflateSync,"INSY")
   1.317 -#   pragma map(inflateSetDictionary,"INSEDI")
   1.318 -#   pragma map(inflate_blocks,"INBL")
   1.319 -#   pragma map(inflate_blocks_new,"INBLNE")
   1.320 -#   pragma map(inflate_blocks_free,"INBLFR")
   1.321 -#   pragma map(inflate_blocks_reset,"INBLRE")
   1.322 -#   pragma map(inflate_codes_free,"INCOFR")
   1.323 -#   pragma map(inflate_codes,"INCO")
   1.324 -#   pragma map(inflate_fast,"INFA")
   1.325 -#   pragma map(inflate_flush,"INFLU")
   1.326 -#   pragma map(inflate_mask,"INMA")
   1.327 -#   pragma map(inflate_set_dictionary,"INSEDI2")
   1.328 -#   pragma map(inflate_copyright,"INCOPY")
   1.329 -#   pragma map(inflate_trees_bits,"INTRBI")
   1.330 -#   pragma map(inflate_trees_dynamic,"INTRDY")
   1.331 -#   pragma map(inflate_trees_fixed,"INTRFI")
   1.332 -#   pragma map(inflate_trees_free,"INTRFR")
   1.333 -#endif
   1.334 -
   1.335 -#endif /* _ZCONF_H */