aboutsummaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
commit7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch)
tree1879cd29182ababb17cde77cee5ce74505db4006 /zconf.h
parenta383133c4e7b93113cee912f213cf9502d785fa7 (diff)
downloadzlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.gz
zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.bz2
zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.zip
zlib 1.2.0v1.2.0
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h93
1 files changed, 47 insertions, 46 deletions
diff --git a/zconf.h b/zconf.h
index eb0ae2e..8ef845e 100644
--- a/zconf.h
+++ b/zconf.h
@@ -1,6 +1,6 @@
1/* zconf.h -- configuration of the zlib compression library 1/* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2002 Jean-loup Gailly. 2 * Copyright (C) 1995-2003 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6/* @(#) $Id$ */ 6/* @(#) $Id$ */
@@ -13,39 +13,42 @@
13 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. 13 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
14 */ 14 */
15#ifdef Z_PREFIX 15#ifdef Z_PREFIX
16# define deflateInit_ z_deflateInit_ 16# define deflateInit_ z_deflateInit_
17# define deflate z_deflate 17# define deflate z_deflate
18# define deflateEnd z_deflateEnd 18# define deflateEnd z_deflateEnd
19# define inflateInit_ z_inflateInit_ 19# define inflateInit_ z_inflateInit_
20# define inflate z_inflate 20# define inflate z_inflate
21# define inflateEnd z_inflateEnd 21# define inflateEnd z_inflateEnd
22# define deflateInit2_ z_deflateInit2_ 22# define deflateInit2_ z_deflateInit2_
23# define deflateSetDictionary z_deflateSetDictionary 23# define deflateSetDictionary z_deflateSetDictionary
24# define deflateCopy z_deflateCopy 24# define deflateCopy z_deflateCopy
25# define deflateReset z_deflateReset 25# define deflateReset z_deflateReset
26# define deflateParams z_deflateParams 26# define deflateParams z_deflateParams
27# define inflateInit2_ z_inflateInit2_ 27# define deflateBound z_deflateBound
28# define inflateInit2_ z_inflateInit2_
28# define inflateSetDictionary z_inflateSetDictionary 29# define inflateSetDictionary z_inflateSetDictionary
29# define inflateSync z_inflateSync 30# define inflateSync z_inflateSync
30# define inflateSyncPoint z_inflateSyncPoint 31# define inflateSyncPoint z_inflateSyncPoint
31# define inflateReset z_inflateReset 32# define inflateCopy z_inflateCopy
32# define compress z_compress 33# define inflateReset z_inflateReset
33# define compress2 z_compress2 34# define compress z_compress
34# define uncompress z_uncompress 35# define compress2 z_compress2
35# define adler32 z_adler32 36# define compressBound z_compressBound
36# define crc32 z_crc32 37# define uncompress z_uncompress
38# define adler32 z_adler32
39# define crc32 z_crc32
37# define get_crc_table z_get_crc_table 40# define get_crc_table z_get_crc_table
38 41
39# define Byte z_Byte 42# define Byte z_Byte
40# define uInt z_uInt 43# define uInt z_uInt
41# define uLong z_uLong 44# define uLong z_uLong
42# define Bytef z_Bytef 45# define Bytef z_Bytef
43# define charf z_charf 46# define charf z_charf
44# define intf z_intf 47# define intf z_intf
45# define uIntf z_uIntf 48# define uIntf z_uIntf
46# define uLongf z_uLongf 49# define uLongf z_uLongf
47# define voidpf z_voidpf 50# define voidpf z_voidpf
48# define voidp z_voidp 51# define voidp z_voidp
49#endif 52#endif
50 53
51#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) 54#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
@@ -80,9 +83,15 @@
80# endif 83# endif
81#endif 84#endif
82 85
86#if defined __HOS_AIX__
87# ifndef STDC
88# define STDC
89# endif
90#endif
91
83#ifndef STDC 92#ifndef STDC
84# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 93# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
85# define const 94# define const /* note: need a more gentle solution here */
86# endif 95# endif
87#endif 96#endif
88 97
@@ -210,7 +219,7 @@
210# define FAR 219# define FAR
211#endif 220#endif
212 221
213#if !defined(MACOS) && !defined(TARGET_OS_MAC) 222#if !defined(__MACTYPES__)
214typedef unsigned char Byte; /* 8 bits */ 223typedef unsigned char Byte; /* 8 bits */
215#endif 224#endif
216typedef unsigned int uInt; /* 16 bits or more */ 225typedef unsigned int uInt; /* 16 bits or more */
@@ -228,14 +237,16 @@ typedef uInt FAR uIntf;
228typedef uLong FAR uLongf; 237typedef uLong FAR uLongf;
229 238
230#ifdef STDC 239#ifdef STDC
240 typedef void const *voidpc;
231 typedef void FAR *voidpf; 241 typedef void FAR *voidpf;
232 typedef void *voidp; 242 typedef void *voidp;
233#else 243#else
244 typedef Byte const *voidpc;
234 typedef Byte FAR *voidpf; 245 typedef Byte FAR *voidpf;
235 typedef Byte *voidp; 246 typedef Byte *voidp;
236#endif 247#endif
237 248
238#ifdef HAVE_UNISTD_H 249#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */
239# include <sys/types.h> /* for off_t */ 250# include <sys/types.h> /* for off_t */
240# include <unistd.h> /* for SEEK_* and off_t */ 251# include <unistd.h> /* for SEEK_* and off_t */
241# define z_off_t off_t 252# define z_off_t off_t
@@ -254,26 +265,16 @@ typedef uLong FAR uLongf;
254# pragma map(deflateInit_,"DEIN") 265# pragma map(deflateInit_,"DEIN")
255# pragma map(deflateInit2_,"DEIN2") 266# pragma map(deflateInit2_,"DEIN2")
256# pragma map(deflateEnd,"DEEND") 267# pragma map(deflateEnd,"DEEND")
268# pragma map(deflateBound,"DEBND")
257# pragma map(inflateInit_,"ININ") 269# pragma map(inflateInit_,"ININ")
258# pragma map(inflateInit2_,"ININ2") 270# pragma map(inflateInit2_,"ININ2")
259# pragma map(inflateEnd,"INEND") 271# pragma map(inflateEnd,"INEND")
260# pragma map(inflateSync,"INSY") 272# pragma map(inflateSync,"INSY")
261# pragma map(inflateSetDictionary,"INSEDI") 273# pragma map(inflateSetDictionary,"INSEDI")
262# pragma map(inflate_blocks,"INBL") 274# pragma map(compressBound,"CMBND")
263# pragma map(inflate_blocks_new,"INBLNE") 275# pragma map(inflate_table,"INTABL")
264# pragma map(inflate_blocks_free,"INBLFR")
265# pragma map(inflate_blocks_reset,"INBLRE")
266# pragma map(inflate_codes_free,"INCOFR")
267# pragma map(inflate_codes,"INCO")
268# pragma map(inflate_fast,"INFA") 276# pragma map(inflate_fast,"INFA")
269# pragma map(inflate_flush,"INFLU")
270# pragma map(inflate_mask,"INMA")
271# pragma map(inflate_set_dictionary,"INSEDI2")
272# pragma map(inflate_copyright,"INCOPY") 277# pragma map(inflate_copyright,"INCOPY")
273# pragma map(inflate_trees_bits,"INTRBI")
274# pragma map(inflate_trees_dynamic,"INTRDY")
275# pragma map(inflate_trees_fixed,"INTRFI")
276# pragma map(inflate_trees_free,"INTRFR")
277#endif 278#endif
278 279
279#endif /* _ZCONF_H */ 280#endif /* _ZCONF_H */