aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h1012
1 files changed, 506 insertions, 506 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h b/libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h
index a5f29f8..1477c89 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/zlib/zconf.h
@@ -1,506 +1,506 @@
1/* zconf.h -- configuration of the zlib compression library 1/* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2012 Jean-loup Gailly. 2 * Copyright (C) 1995-2012 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$ */
7 7
8#ifndef ZCONF_H 8#ifndef ZCONF_H
9#define ZCONF_H 9#define ZCONF_H
10 10
11/* 11/*
12 * If you *really* need a unique prefix for all types and library functions, 12 * If you *really* need a unique prefix for all types and library functions,
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 * Even better than compiling with -DZ_PREFIX would be to use configure to set 14 * Even better than compiling with -DZ_PREFIX would be to use configure to set
15 * this permanently in zconf.h using "./configure --zprefix". 15 * this permanently in zconf.h using "./configure --zprefix".
16 */ 16 */
17#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ 17#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18# define Z_PREFIX_SET 18# define Z_PREFIX_SET
19 19
20/* all linked symbols */ 20/* all linked symbols */
21# define _dist_code z__dist_code 21# define _dist_code z__dist_code
22# define _length_code z__length_code 22# define _length_code z__length_code
23# define _tr_align z__tr_align 23# define _tr_align z__tr_align
24# define _tr_flush_block z__tr_flush_block 24# define _tr_flush_block z__tr_flush_block
25# define _tr_init z__tr_init 25# define _tr_init z__tr_init
26# define _tr_stored_block z__tr_stored_block 26# define _tr_stored_block z__tr_stored_block
27# define _tr_tally z__tr_tally 27# define _tr_tally z__tr_tally
28# define adler32 z_adler32 28# define adler32 z_adler32
29# define adler32_combine z_adler32_combine 29# define adler32_combine z_adler32_combine
30# define adler32_combine64 z_adler32_combine64 30# define adler32_combine64 z_adler32_combine64
31# ifndef Z_SOLO 31# ifndef Z_SOLO
32# define compress z_compress 32# define compress z_compress
33# define compress2 z_compress2 33# define compress2 z_compress2
34# define compressBound z_compressBound 34# define compressBound z_compressBound
35# endif 35# endif
36# define crc32 z_crc32 36# define crc32 z_crc32
37# define crc32_combine z_crc32_combine 37# define crc32_combine z_crc32_combine
38# define crc32_combine64 z_crc32_combine64 38# define crc32_combine64 z_crc32_combine64
39# define deflate z_deflate 39# define deflate z_deflate
40# define deflateBound z_deflateBound 40# define deflateBound z_deflateBound
41# define deflateCopy z_deflateCopy 41# define deflateCopy z_deflateCopy
42# define deflateEnd z_deflateEnd 42# define deflateEnd z_deflateEnd
43# define deflateInit2_ z_deflateInit2_ 43# define deflateInit2_ z_deflateInit2_
44# define deflateInit_ z_deflateInit_ 44# define deflateInit_ z_deflateInit_
45# define deflateParams z_deflateParams 45# define deflateParams z_deflateParams
46# define deflatePending z_deflatePending 46# define deflatePending z_deflatePending
47# define deflatePrime z_deflatePrime 47# define deflatePrime z_deflatePrime
48# define deflateReset z_deflateReset 48# define deflateReset z_deflateReset
49# define deflateResetKeep z_deflateResetKeep 49# define deflateResetKeep z_deflateResetKeep
50# define deflateSetDictionary z_deflateSetDictionary 50# define deflateSetDictionary z_deflateSetDictionary
51# define deflateSetHeader z_deflateSetHeader 51# define deflateSetHeader z_deflateSetHeader
52# define deflateTune z_deflateTune 52# define deflateTune z_deflateTune
53# define deflate_copyright z_deflate_copyright 53# define deflate_copyright z_deflate_copyright
54# define get_crc_table z_get_crc_table 54# define get_crc_table z_get_crc_table
55# ifndef Z_SOLO 55# ifndef Z_SOLO
56# define gz_error z_gz_error 56# define gz_error z_gz_error
57# define gz_intmax z_gz_intmax 57# define gz_intmax z_gz_intmax
58# define gz_strwinerror z_gz_strwinerror 58# define gz_strwinerror z_gz_strwinerror
59# define gzbuffer z_gzbuffer 59# define gzbuffer z_gzbuffer
60# define gzclearerr z_gzclearerr 60# define gzclearerr z_gzclearerr
61# define gzclose z_gzclose 61# define gzclose z_gzclose
62# define gzclose_r z_gzclose_r 62# define gzclose_r z_gzclose_r
63# define gzclose_w z_gzclose_w 63# define gzclose_w z_gzclose_w
64# define gzdirect z_gzdirect 64# define gzdirect z_gzdirect
65# define gzdopen z_gzdopen 65# define gzdopen z_gzdopen
66# define gzeof z_gzeof 66# define gzeof z_gzeof
67# define gzerror z_gzerror 67# define gzerror z_gzerror
68# define gzflush z_gzflush 68# define gzflush z_gzflush
69# define gzgetc z_gzgetc 69# define gzgetc z_gzgetc
70# define gzgetc_ z_gzgetc_ 70# define gzgetc_ z_gzgetc_
71# define gzgets z_gzgets 71# define gzgets z_gzgets
72# define gzoffset z_gzoffset 72# define gzoffset z_gzoffset
73# define gzoffset64 z_gzoffset64 73# define gzoffset64 z_gzoffset64
74# define gzopen z_gzopen 74# define gzopen z_gzopen
75# define gzopen64 z_gzopen64 75# define gzopen64 z_gzopen64
76# ifdef _WIN32 76# ifdef _WIN32
77# define gzopen_w z_gzopen_w 77# define gzopen_w z_gzopen_w
78# endif 78# endif
79# define gzprintf z_gzprintf 79# define gzprintf z_gzprintf
80# define gzputc z_gzputc 80# define gzputc z_gzputc
81# define gzputs z_gzputs 81# define gzputs z_gzputs
82# define gzread z_gzread 82# define gzread z_gzread
83# define gzrewind z_gzrewind 83# define gzrewind z_gzrewind
84# define gzseek z_gzseek 84# define gzseek z_gzseek
85# define gzseek64 z_gzseek64 85# define gzseek64 z_gzseek64
86# define gzsetparams z_gzsetparams 86# define gzsetparams z_gzsetparams
87# define gztell z_gztell 87# define gztell z_gztell
88# define gztell64 z_gztell64 88# define gztell64 z_gztell64
89# define gzungetc z_gzungetc 89# define gzungetc z_gzungetc
90# define gzwrite z_gzwrite 90# define gzwrite z_gzwrite
91# endif 91# endif
92# define inflate z_inflate 92# define inflate z_inflate
93# define inflateBack z_inflateBack 93# define inflateBack z_inflateBack
94# define inflateBackEnd z_inflateBackEnd 94# define inflateBackEnd z_inflateBackEnd
95# define inflateBackInit_ z_inflateBackInit_ 95# define inflateBackInit_ z_inflateBackInit_
96# define inflateCopy z_inflateCopy 96# define inflateCopy z_inflateCopy
97# define inflateEnd z_inflateEnd 97# define inflateEnd z_inflateEnd
98# define inflateGetHeader z_inflateGetHeader 98# define inflateGetHeader z_inflateGetHeader
99# define inflateInit2_ z_inflateInit2_ 99# define inflateInit2_ z_inflateInit2_
100# define inflateInit_ z_inflateInit_ 100# define inflateInit_ z_inflateInit_
101# define inflateMark z_inflateMark 101# define inflateMark z_inflateMark
102# define inflatePrime z_inflatePrime 102# define inflatePrime z_inflatePrime
103# define inflateReset z_inflateReset 103# define inflateReset z_inflateReset
104# define inflateReset2 z_inflateReset2 104# define inflateReset2 z_inflateReset2
105# define inflateSetDictionary z_inflateSetDictionary 105# define inflateSetDictionary z_inflateSetDictionary
106# define inflateSync z_inflateSync 106# define inflateSync z_inflateSync
107# define inflateSyncPoint z_inflateSyncPoint 107# define inflateSyncPoint z_inflateSyncPoint
108# define inflateUndermine z_inflateUndermine 108# define inflateUndermine z_inflateUndermine
109# define inflateResetKeep z_inflateResetKeep 109# define inflateResetKeep z_inflateResetKeep
110# define inflate_copyright z_inflate_copyright 110# define inflate_copyright z_inflate_copyright
111# define inflate_fast z_inflate_fast 111# define inflate_fast z_inflate_fast
112# define inflate_table z_inflate_table 112# define inflate_table z_inflate_table
113# ifndef Z_SOLO 113# ifndef Z_SOLO
114# define uncompress z_uncompress 114# define uncompress z_uncompress
115# endif 115# endif
116# define zError z_zError 116# define zError z_zError
117# ifndef Z_SOLO 117# ifndef Z_SOLO
118# define zcalloc z_zcalloc 118# define zcalloc z_zcalloc
119# define zcfree z_zcfree 119# define zcfree z_zcfree
120# endif 120# endif
121# define zlibCompileFlags z_zlibCompileFlags 121# define zlibCompileFlags z_zlibCompileFlags
122# define zlibVersion z_zlibVersion 122# define zlibVersion z_zlibVersion
123 123
124/* all zlib typedefs in zlib.h and zconf.h */ 124/* all zlib typedefs in zlib.h and zconf.h */
125# define Byte z_Byte 125# define Byte z_Byte
126# define Bytef z_Bytef 126# define Bytef z_Bytef
127# define alloc_func z_alloc_func 127# define alloc_func z_alloc_func
128# define charf z_charf 128# define charf z_charf
129# define free_func z_free_func 129# define free_func z_free_func
130# ifndef Z_SOLO 130# ifndef Z_SOLO
131# define gzFile z_gzFile 131# define gzFile z_gzFile
132# endif 132# endif
133# define gz_header z_gz_header 133# define gz_header z_gz_header
134# define gz_headerp z_gz_headerp 134# define gz_headerp z_gz_headerp
135# define in_func z_in_func 135# define in_func z_in_func
136# define intf z_intf 136# define intf z_intf
137# define out_func z_out_func 137# define out_func z_out_func
138# define uInt z_uInt 138# define uInt z_uInt
139# define uIntf z_uIntf 139# define uIntf z_uIntf
140# define uLong z_uLong 140# define uLong z_uLong
141# define uLongf z_uLongf 141# define uLongf z_uLongf
142# define voidp z_voidp 142# define voidp z_voidp
143# define voidpc z_voidpc 143# define voidpc z_voidpc
144# define voidpf z_voidpf 144# define voidpf z_voidpf
145 145
146/* all zlib structs in zlib.h and zconf.h */ 146/* all zlib structs in zlib.h and zconf.h */
147# define gz_header_s z_gz_header_s 147# define gz_header_s z_gz_header_s
148# define internal_state z_internal_state 148# define internal_state z_internal_state
149 149
150#endif 150#endif
151 151
152#if defined(__MSDOS__) && !defined(MSDOS) 152#if defined(__MSDOS__) && !defined(MSDOS)
153# define MSDOS 153# define MSDOS
154#endif 154#endif
155#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) 155#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
156# define OS2 156# define OS2
157#endif 157#endif
158#if defined(_WINDOWS) && !defined(WINDOWS) 158#if defined(_WINDOWS) && !defined(WINDOWS)
159# define WINDOWS 159# define WINDOWS
160#endif 160#endif
161#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) 161#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
162# ifndef WIN32 162# ifndef WIN32
163# define WIN32 163# define WIN32
164# endif 164# endif
165#endif 165#endif
166#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) 166#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
167# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) 167# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
168# ifndef SYS16BIT 168# ifndef SYS16BIT
169# define SYS16BIT 169# define SYS16BIT
170# endif 170# endif
171# endif 171# endif
172#endif 172#endif
173 173
174/* 174/*
175 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more 175 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
176 * than 64k bytes at a time (needed on systems with 16-bit int). 176 * than 64k bytes at a time (needed on systems with 16-bit int).
177 */ 177 */
178#ifdef SYS16BIT 178#ifdef SYS16BIT
179# define MAXSEG_64K 179# define MAXSEG_64K
180#endif 180#endif
181#ifdef MSDOS 181#ifdef MSDOS
182# define UNALIGNED_OK 182# define UNALIGNED_OK
183#endif 183#endif
184 184
185#ifdef __STDC_VERSION__ 185#ifdef __STDC_VERSION__
186# ifndef STDC 186# ifndef STDC
187# define STDC 187# define STDC
188# endif 188# endif
189# if __STDC_VERSION__ >= 199901L 189# if __STDC_VERSION__ >= 199901L
190# ifndef STDC99 190# ifndef STDC99
191# define STDC99 191# define STDC99
192# endif 192# endif
193# endif 193# endif
194#endif 194#endif
195#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) 195#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
196# define STDC 196# define STDC
197#endif 197#endif
198#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) 198#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
199# define STDC 199# define STDC
200#endif 200#endif
201#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) 201#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
202# define STDC 202# define STDC
203#endif 203#endif
204#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) 204#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
205# define STDC 205# define STDC
206#endif 206#endif
207 207
208#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ 208#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
209# define STDC 209# define STDC
210#endif 210#endif
211 211
212#ifndef STDC 212#ifndef STDC
213# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 213# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
214# define const /* note: need a more gentle solution here */ 214# define const /* note: need a more gentle solution here */
215# endif 215# endif
216#endif 216#endif
217 217
218#if defined(ZLIB_CONST) && !defined(z_const) 218#if defined(ZLIB_CONST) && !defined(z_const)
219# define z_const const 219# define z_const const
220#else 220#else
221# define z_const 221# define z_const
222#endif 222#endif
223 223
224/* Some Mac compilers merge all .h files incorrectly: */ 224/* Some Mac compilers merge all .h files incorrectly: */
225#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) 225#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
226# define NO_DUMMY_DECL 226# define NO_DUMMY_DECL
227#endif 227#endif
228 228
229/* Maximum value for memLevel in deflateInit2 */ 229/* Maximum value for memLevel in deflateInit2 */
230#ifndef MAX_MEM_LEVEL 230#ifndef MAX_MEM_LEVEL
231# ifdef MAXSEG_64K 231# ifdef MAXSEG_64K
232# define MAX_MEM_LEVEL 8 232# define MAX_MEM_LEVEL 8
233# else 233# else
234# define MAX_MEM_LEVEL 9 234# define MAX_MEM_LEVEL 9
235# endif 235# endif
236#endif 236#endif
237 237
238/* Maximum value for windowBits in deflateInit2 and inflateInit2. 238/* Maximum value for windowBits in deflateInit2 and inflateInit2.
239 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files 239 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
240 * created by gzip. (Files created by minigzip can still be extracted by 240 * created by gzip. (Files created by minigzip can still be extracted by
241 * gzip.) 241 * gzip.)
242 */ 242 */
243#ifndef MAX_WBITS 243#ifndef MAX_WBITS
244# define MAX_WBITS 15 /* 32K LZ77 window */ 244# define MAX_WBITS 15 /* 32K LZ77 window */
245#endif 245#endif
246 246
247/* The memory requirements for deflate are (in bytes): 247/* The memory requirements for deflate are (in bytes):
248 (1 << (windowBits+2)) + (1 << (memLevel+9)) 248 (1 << (windowBits+2)) + (1 << (memLevel+9))
249 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) 249 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
250 plus a few kilobytes for small objects. For example, if you want to reduce 250 plus a few kilobytes for small objects. For example, if you want to reduce
251 the default memory requirements from 256K to 128K, compile with 251 the default memory requirements from 256K to 128K, compile with
252 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" 252 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
253 Of course this will generally degrade compression (there's no free lunch). 253 Of course this will generally degrade compression (there's no free lunch).
254 254
255 The memory requirements for inflate are (in bytes) 1 << windowBits 255 The memory requirements for inflate are (in bytes) 1 << windowBits
256 that is, 32K for windowBits=15 (default value) plus a few kilobytes 256 that is, 32K for windowBits=15 (default value) plus a few kilobytes
257 for small objects. 257 for small objects.
258*/ 258*/
259 259
260 /* Type declarations */ 260 /* Type declarations */
261 261
262#ifndef OF /* function prototypes */ 262#ifndef OF /* function prototypes */
263# ifdef STDC 263# ifdef STDC
264# define OF(args) args 264# define OF(args) args
265# else 265# else
266# define OF(args) () 266# define OF(args) ()
267# endif 267# endif
268#endif 268#endif
269 269
270#ifndef Z_ARG /* function prototypes for stdarg */ 270#ifndef Z_ARG /* function prototypes for stdarg */
271# if defined(STDC) || defined(Z_HAVE_STDARG_H) 271# if defined(STDC) || defined(Z_HAVE_STDARG_H)
272# define Z_ARG(args) args 272# define Z_ARG(args) args
273# else 273# else
274# define Z_ARG(args) () 274# define Z_ARG(args) ()
275# endif 275# endif
276#endif 276#endif
277 277
278/* The following definitions for FAR are needed only for MSDOS mixed 278/* The following definitions for FAR are needed only for MSDOS mixed
279 * model programming (small or medium model with some far allocations). 279 * model programming (small or medium model with some far allocations).
280 * This was tested only with MSC; for other MSDOS compilers you may have 280 * This was tested only with MSC; for other MSDOS compilers you may have
281 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 281 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
282 * just define FAR to be empty. 282 * just define FAR to be empty.
283 */ 283 */
284#ifdef SYS16BIT 284#ifdef SYS16BIT
285# if defined(M_I86SM) || defined(M_I86MM) 285# if defined(M_I86SM) || defined(M_I86MM)
286 /* MSC small or medium model */ 286 /* MSC small or medium model */
287# define SMALL_MEDIUM 287# define SMALL_MEDIUM
288# ifdef _MSC_VER 288# ifdef _MSC_VER
289# define FAR _far 289# define FAR _far
290# else 290# else
291# define FAR far 291# define FAR far
292# endif 292# endif
293# endif 293# endif
294# if (defined(__SMALL__) || defined(__MEDIUM__)) 294# if (defined(__SMALL__) || defined(__MEDIUM__))
295 /* Turbo C small or medium model */ 295 /* Turbo C small or medium model */
296# define SMALL_MEDIUM 296# define SMALL_MEDIUM
297# ifdef __BORLANDC__ 297# ifdef __BORLANDC__
298# define FAR _far 298# define FAR _far
299# else 299# else
300# define FAR far 300# define FAR far
301# endif 301# endif
302# endif 302# endif
303#endif 303#endif
304 304
305#if defined(WINDOWS) || defined(WIN32) 305#if defined(WINDOWS) || defined(WIN32)
306 /* If building or using zlib as a DLL, define ZLIB_DLL. 306 /* If building or using zlib as a DLL, define ZLIB_DLL.
307 * This is not mandatory, but it offers a little performance increase. 307 * This is not mandatory, but it offers a little performance increase.
308 */ 308 */
309# ifdef ZLIB_DLL 309# ifdef ZLIB_DLL
310# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) 310# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
311# ifdef ZLIB_INTERNAL 311# ifdef ZLIB_INTERNAL
312# define ZEXTERN extern __declspec(dllexport) 312# define ZEXTERN extern __declspec(dllexport)
313# else 313# else
314# define ZEXTERN extern __declspec(dllimport) 314# define ZEXTERN extern __declspec(dllimport)
315# endif 315# endif
316# endif 316# endif
317# endif /* ZLIB_DLL */ 317# endif /* ZLIB_DLL */
318 /* If building or using zlib with the WINAPI/WINAPIV calling convention, 318 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
319 * define ZLIB_WINAPI. 319 * define ZLIB_WINAPI.
320 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. 320 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
321 */ 321 */
322# ifdef ZLIB_WINAPI 322# ifdef ZLIB_WINAPI
323# ifdef FAR 323# ifdef FAR
324# undef FAR 324# undef FAR
325# endif 325# endif
326# include <windows.h> 326# include <windows.h>
327 /* No need for _export, use ZLIB.DEF instead. */ 327 /* No need for _export, use ZLIB.DEF instead. */
328 /* For complete Windows compatibility, use WINAPI, not __stdcall. */ 328 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
329# define ZEXPORT WINAPI 329# define ZEXPORT WINAPI
330# ifdef WIN32 330# ifdef WIN32
331# define ZEXPORTVA WINAPIV 331# define ZEXPORTVA WINAPIV
332# else 332# else
333# define ZEXPORTVA FAR CDECL 333# define ZEXPORTVA FAR CDECL
334# endif 334# endif
335# endif 335# endif
336#endif 336#endif
337 337
338#if defined (__BEOS__) 338#if defined (__BEOS__)
339# ifdef ZLIB_DLL 339# ifdef ZLIB_DLL
340# ifdef ZLIB_INTERNAL 340# ifdef ZLIB_INTERNAL
341# define ZEXPORT __declspec(dllexport) 341# define ZEXPORT __declspec(dllexport)
342# define ZEXPORTVA __declspec(dllexport) 342# define ZEXPORTVA __declspec(dllexport)
343# else 343# else
344# define ZEXPORT __declspec(dllimport) 344# define ZEXPORT __declspec(dllimport)
345# define ZEXPORTVA __declspec(dllimport) 345# define ZEXPORTVA __declspec(dllimport)
346# endif 346# endif
347# endif 347# endif
348#endif 348#endif
349 349
350#ifndef ZEXTERN 350#ifndef ZEXTERN
351# define ZEXTERN extern 351# define ZEXTERN extern
352#endif 352#endif
353#ifndef ZEXPORT 353#ifndef ZEXPORT
354# define ZEXPORT 354# define ZEXPORT
355#endif 355#endif
356#ifndef ZEXPORTVA 356#ifndef ZEXPORTVA
357# define ZEXPORTVA 357# define ZEXPORTVA
358#endif 358#endif
359 359
360#ifndef FAR 360#ifndef FAR
361# define FAR 361# define FAR
362#endif 362#endif
363 363
364#if !defined(__MACTYPES__) 364#if !defined(__MACTYPES__)
365typedef unsigned char Byte; /* 8 bits */ 365typedef unsigned char Byte; /* 8 bits */
366#endif 366#endif
367typedef unsigned int uInt; /* 16 bits or more */ 367typedef unsigned int uInt; /* 16 bits or more */
368typedef unsigned long uLong; /* 32 bits or more */ 368typedef unsigned long uLong; /* 32 bits or more */
369 369
370#ifdef SMALL_MEDIUM 370#ifdef SMALL_MEDIUM
371 /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ 371 /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
372# define Bytef Byte FAR 372# define Bytef Byte FAR
373#else 373#else
374 typedef Byte FAR Bytef; 374 typedef Byte FAR Bytef;
375#endif 375#endif
376typedef char FAR charf; 376typedef char FAR charf;
377typedef int FAR intf; 377typedef int FAR intf;
378typedef uInt FAR uIntf; 378typedef uInt FAR uIntf;
379typedef uLong FAR uLongf; 379typedef uLong FAR uLongf;
380 380
381#ifdef STDC 381#ifdef STDC
382 typedef void const *voidpc; 382 typedef void const *voidpc;
383 typedef void FAR *voidpf; 383 typedef void FAR *voidpf;
384 typedef void *voidp; 384 typedef void *voidp;
385#else 385#else
386 typedef Byte const *voidpc; 386 typedef Byte const *voidpc;
387 typedef Byte FAR *voidpf; 387 typedef Byte FAR *voidpf;
388 typedef Byte *voidp; 388 typedef Byte *voidp;
389#endif 389#endif
390 390
391/* ./configure may #define Z_U4 here */ 391/* ./configure may #define Z_U4 here */
392 392
393#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 393#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
394# include <limits.h> 394# include <limits.h>
395# if (UINT_MAX == 0xffffffffUL) 395# if (UINT_MAX == 0xffffffffUL)
396# define Z_U4 unsigned 396# define Z_U4 unsigned
397# else 397# else
398# if (ULONG_MAX == 0xffffffffUL) 398# if (ULONG_MAX == 0xffffffffUL)
399# define Z_U4 unsigned long 399# define Z_U4 unsigned long
400# else 400# else
401# if (USHRT_MAX == 0xffffffffUL) 401# if (USHRT_MAX == 0xffffffffUL)
402# define Z_U4 unsigned short 402# define Z_U4 unsigned short
403# endif 403# endif
404# endif 404# endif
405# endif 405# endif
406#endif 406#endif
407 407
408#ifdef Z_U4 408#ifdef Z_U4
409 typedef Z_U4 z_crc_t; 409 typedef Z_U4 z_crc_t;
410#else 410#else
411 typedef unsigned long z_crc_t; 411 typedef unsigned long z_crc_t;
412#endif 412#endif
413 413
414#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 414#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
415# define Z_HAVE_UNISTD_H 415# define Z_HAVE_UNISTD_H
416#endif 416#endif
417 417
418#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ 418#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
419# define Z_HAVE_STDARG_H 419# define Z_HAVE_STDARG_H
420#endif 420#endif
421 421
422#ifdef STDC 422#ifdef STDC
423# ifndef Z_SOLO 423# ifndef Z_SOLO
424# include <sys/types.h> /* for off_t */ 424# include <sys/types.h> /* for off_t */
425# endif 425# endif
426#endif 426#endif
427 427
428#ifdef _WIN32 428#ifdef _WIN32
429# include <stddef.h> /* for wchar_t */ 429# include <stddef.h> /* for wchar_t */
430#endif 430#endif
431 431
432/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and 432/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
433 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even 433 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
434 * though the former does not conform to the LFS document), but considering 434 * though the former does not conform to the LFS document), but considering
435 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as 435 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
436 * equivalently requesting no 64-bit operations 436 * equivalently requesting no 64-bit operations
437 */ 437 */
438#if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 438#if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
439# undef _LARGEFILE64_SOURCE 439# undef _LARGEFILE64_SOURCE
440#endif 440#endif
441 441
442#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 442#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
443# define Z_HAVE_UNISTD_H 443# define Z_HAVE_UNISTD_H
444#endif 444#endif
445#ifndef Z_SOLO 445#ifndef Z_SOLO
446# if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE) 446# if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE)
447# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 447# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
448# ifdef VMS 448# ifdef VMS
449# include <unixio.h> /* for off_t */ 449# include <unixio.h> /* for off_t */
450# endif 450# endif
451# ifndef z_off_t 451# ifndef z_off_t
452# define z_off_t off_t 452# define z_off_t off_t
453# endif 453# endif
454# endif 454# endif
455#endif 455#endif
456 456
457#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 457#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
458# define Z_LFS64 458# define Z_LFS64
459#endif 459#endif
460 460
461#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 461#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
462# define Z_LARGE64 462# define Z_LARGE64
463#endif 463#endif
464 464
465#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 465#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
466# define Z_WANT64 466# define Z_WANT64
467#endif 467#endif
468 468
469#if !defined(SEEK_SET) && !defined(Z_SOLO) 469#if !defined(SEEK_SET) && !defined(Z_SOLO)
470# define SEEK_SET 0 /* Seek from beginning of file. */ 470# define SEEK_SET 0 /* Seek from beginning of file. */
471# define SEEK_CUR 1 /* Seek from current position. */ 471# define SEEK_CUR 1 /* Seek from current position. */
472# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 472# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
473#endif 473#endif
474 474
475#ifndef z_off_t 475#ifndef z_off_t
476# define z_off_t long 476# define z_off_t long
477#endif 477#endif
478 478
479#if !defined(_WIN32) && defined(Z_LARGE64) 479#if !defined(_WIN32) && defined(Z_LARGE64)
480# define z_off64_t off64_t 480# define z_off64_t off64_t
481#else 481#else
482# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 482# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
483# define z_off64_t __int64 483# define z_off64_t __int64
484# else 484# else
485# define z_off64_t z_off_t 485# define z_off64_t z_off_t
486# endif 486# endif
487#endif 487#endif
488 488
489/* MVS linker does not support external names larger than 8 bytes */ 489/* MVS linker does not support external names larger than 8 bytes */
490#if defined(__MVS__) 490#if defined(__MVS__)
491 #pragma map(deflateInit_,"DEIN") 491 #pragma map(deflateInit_,"DEIN")
492 #pragma map(deflateInit2_,"DEIN2") 492 #pragma map(deflateInit2_,"DEIN2")
493 #pragma map(deflateEnd,"DEEND") 493 #pragma map(deflateEnd,"DEEND")
494 #pragma map(deflateBound,"DEBND") 494 #pragma map(deflateBound,"DEBND")
495 #pragma map(inflateInit_,"ININ") 495 #pragma map(inflateInit_,"ININ")
496 #pragma map(inflateInit2_,"ININ2") 496 #pragma map(inflateInit2_,"ININ2")
497 #pragma map(inflateEnd,"INEND") 497 #pragma map(inflateEnd,"INEND")
498 #pragma map(inflateSync,"INSY") 498 #pragma map(inflateSync,"INSY")
499 #pragma map(inflateSetDictionary,"INSEDI") 499 #pragma map(inflateSetDictionary,"INSEDI")
500 #pragma map(compressBound,"CMBND") 500 #pragma map(compressBound,"CMBND")
501 #pragma map(inflate_table,"INTABL") 501 #pragma map(inflate_table,"INTABL")
502 #pragma map(inflate_fast,"INFA") 502 #pragma map(inflate_fast,"INFA")
503 #pragma map(inflate_copyright,"INCOPY") 503 #pragma map(inflate_copyright,"INCOPY")
504#endif 504#endif
505 505
506#endif /* ZCONF_H */ 506#endif /* ZCONF_H */