annotate PsiCLASS-1.0.2/samtools-0.1.19/win32/zconf.h @ 0:903fc43d6227 draft default tip

Uploaded
author lsong10
date Fri, 26 Mar 2021 16:52:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
1 /* zconf.h -- configuration of the zlib compression library
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
2 * Copyright (C) 1995-2005 Jean-loup Gailly.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
3 * For conditions of distribution and use, see copyright notice in zlib.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
4 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
5
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
6 /* @(#) $Id$ */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
7
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
8 #ifndef ZCONF_H
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
9 #define ZCONF_H
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
10
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
11 /*
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
12 * If you *really* need a unique prefix for all types and library functions,
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
13 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
14 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
15 #ifdef Z_PREFIX
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
16 # define deflateInit_ z_deflateInit_
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
17 # define deflate z_deflate
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
18 # define deflateEnd z_deflateEnd
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
19 # define inflateInit_ z_inflateInit_
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
20 # define inflate z_inflate
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
21 # define inflateEnd z_inflateEnd
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
22 # define deflateInit2_ z_deflateInit2_
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
23 # define deflateSetDictionary z_deflateSetDictionary
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
24 # define deflateCopy z_deflateCopy
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
25 # define deflateReset z_deflateReset
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
26 # define deflateParams z_deflateParams
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
27 # define deflateBound z_deflateBound
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
28 # define deflatePrime z_deflatePrime
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
29 # define inflateInit2_ z_inflateInit2_
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
30 # define inflateSetDictionary z_inflateSetDictionary
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
31 # define inflateSync z_inflateSync
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
32 # define inflateSyncPoint z_inflateSyncPoint
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
33 # define inflateCopy z_inflateCopy
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
34 # define inflateReset z_inflateReset
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
35 # define inflateBack z_inflateBack
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
36 # define inflateBackEnd z_inflateBackEnd
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
37 # define compress z_compress
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
38 # define compress2 z_compress2
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
39 # define compressBound z_compressBound
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
40 # define uncompress z_uncompress
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
41 # define adler32 z_adler32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
42 # define crc32 z_crc32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
43 # define get_crc_table z_get_crc_table
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
44 # define zError z_zError
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
45
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
46 # define alloc_func z_alloc_func
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
47 # define free_func z_free_func
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
48 # define in_func z_in_func
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
49 # define out_func z_out_func
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
50 # define Byte z_Byte
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
51 # define uInt z_uInt
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
52 # define uLong z_uLong
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
53 # define Bytef z_Bytef
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
54 # define charf z_charf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
55 # define intf z_intf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
56 # define uIntf z_uIntf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
57 # define uLongf z_uLongf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
58 # define voidpf z_voidpf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
59 # define voidp z_voidp
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
60 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
61
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
62 #if defined(__MSDOS__) && !defined(MSDOS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
63 # define MSDOS
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
64 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
65 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
66 # define OS2
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
67 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
68 #if defined(_WINDOWS) && !defined(WINDOWS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
69 # define WINDOWS
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
70 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
71 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
72 # ifndef WIN32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
73 # define WIN32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
74 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
75 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
76 #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
77 # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
78 # ifndef SYS16BIT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
79 # define SYS16BIT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
80 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
81 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
82 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
83
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
84 /*
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
85 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
86 * than 64k bytes at a time (needed on systems with 16-bit int).
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
87 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
88 #ifdef SYS16BIT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
89 # define MAXSEG_64K
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
90 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
91 #ifdef MSDOS
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
92 # define UNALIGNED_OK
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
93 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
94
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
95 #ifdef __STDC_VERSION__
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
96 # ifndef STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
97 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
98 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
99 # if __STDC_VERSION__ >= 199901L
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
100 # ifndef STDC99
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
101 # define STDC99
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
102 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
103 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
104 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
105 #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
106 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
107 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
108 #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
109 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
110 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
111 #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
112 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
113 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
114 #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
115 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
116 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
117
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
118 #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
119 # define STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
120 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
121
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
122 #ifndef STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
123 # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
124 # define const /* note: need a more gentle solution here */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
125 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
126 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
127
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
128 /* Some Mac compilers merge all .h files incorrectly: */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
129 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
130 # define NO_DUMMY_DECL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
131 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
132
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
133 /* Maximum value for memLevel in deflateInit2 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
134 #ifndef MAX_MEM_LEVEL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
135 # ifdef MAXSEG_64K
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
136 # define MAX_MEM_LEVEL 8
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
137 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
138 # define MAX_MEM_LEVEL 9
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
139 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
140 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
141
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
142 /* Maximum value for windowBits in deflateInit2 and inflateInit2.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
143 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
144 * created by gzip. (Files created by minigzip can still be extracted by
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
145 * gzip.)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
146 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
147 #ifndef MAX_WBITS
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
148 # define MAX_WBITS 15 /* 32K LZ77 window */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
149 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
150
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
151 /* The memory requirements for deflate are (in bytes):
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
152 (1 << (windowBits+2)) + (1 << (memLevel+9))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
153 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
154 plus a few kilobytes for small objects. For example, if you want to reduce
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
155 the default memory requirements from 256K to 128K, compile with
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
156 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
157 Of course this will generally degrade compression (there's no free lunch).
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
158
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
159 The memory requirements for inflate are (in bytes) 1 << windowBits
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
160 that is, 32K for windowBits=15 (default value) plus a few kilobytes
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
161 for small objects.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
162 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
163
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
164 /* Type declarations */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
165
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
166 #ifndef OF /* function prototypes */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
167 # ifdef STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
168 # define OF(args) args
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
169 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
170 # define OF(args) ()
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
171 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
172 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
173
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
174 /* The following definitions for FAR are needed only for MSDOS mixed
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
175 * model programming (small or medium model with some far allocations).
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
176 * This was tested only with MSC; for other MSDOS compilers you may have
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
177 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
178 * just define FAR to be empty.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
179 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
180 #ifdef SYS16BIT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
181 # if defined(M_I86SM) || defined(M_I86MM)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
182 /* MSC small or medium model */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
183 # define SMALL_MEDIUM
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
184 # ifdef _MSC_VER
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
185 # define FAR _far
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
186 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
187 # define FAR far
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
188 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
189 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
190 # if (defined(__SMALL__) || defined(__MEDIUM__))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
191 /* Turbo C small or medium model */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
192 # define SMALL_MEDIUM
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
193 # ifdef __BORLANDC__
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
194 # define FAR _far
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
195 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
196 # define FAR far
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
197 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
198 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
199 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
200
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
201 #if defined(WINDOWS) || defined(WIN32)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
202 /* If building or using zlib as a DLL, define ZLIB_DLL.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
203 * This is not mandatory, but it offers a little performance increase.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
204 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
205 # ifdef ZLIB_DLL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
206 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
207 # ifdef ZLIB_INTERNAL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
208 # define ZEXTERN extern __declspec(dllexport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
209 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
210 # define ZEXTERN extern __declspec(dllimport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
211 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
212 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
213 # endif /* ZLIB_DLL */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
214 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
215 * define ZLIB_WINAPI.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
216 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
217 */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
218 # ifdef ZLIB_WINAPI
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
219 # ifdef FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
220 # undef FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
221 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
222 # include <windows.h>
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
223 /* No need for _export, use ZLIB.DEF instead. */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
224 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
225 # define ZEXPORT WINAPI
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
226 # ifdef WIN32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
227 # define ZEXPORTVA WINAPIV
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
228 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
229 # define ZEXPORTVA FAR CDECL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
230 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
231 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
232 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
233
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
234 #if defined (__BEOS__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
235 # ifdef ZLIB_DLL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
236 # ifdef ZLIB_INTERNAL
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
237 # define ZEXPORT __declspec(dllexport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
238 # define ZEXPORTVA __declspec(dllexport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
239 # else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
240 # define ZEXPORT __declspec(dllimport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
241 # define ZEXPORTVA __declspec(dllimport)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
242 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
243 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
244 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
245
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
246 #ifndef ZEXTERN
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
247 # define ZEXTERN extern
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
248 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
249 #ifndef ZEXPORT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
250 # define ZEXPORT
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
251 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
252 #ifndef ZEXPORTVA
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
253 # define ZEXPORTVA
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
254 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
255
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
256 #ifndef FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
257 # define FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
258 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
259
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
260 #if !defined(__MACTYPES__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
261 typedef unsigned char Byte; /* 8 bits */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
262 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
263 typedef unsigned int uInt; /* 16 bits or more */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
264 typedef unsigned long uLong; /* 32 bits or more */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
265
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
266 #ifdef SMALL_MEDIUM
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
267 /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
268 # define Bytef Byte FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
269 #else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
270 typedef Byte FAR Bytef;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
271 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
272 typedef char FAR charf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
273 typedef int FAR intf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
274 typedef uInt FAR uIntf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
275 typedef uLong FAR uLongf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
276
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
277 #ifdef STDC
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
278 typedef void const *voidpc;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
279 typedef void FAR *voidpf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
280 typedef void *voidp;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
281 #else
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
282 typedef Byte const *voidpc;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
283 typedef Byte FAR *voidpf;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
284 typedef Byte *voidp;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
285 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
286
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
287 #if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
288 # include <sys/types.h> /* for off_t */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
289 # include <unistd.h> /* for SEEK_* and off_t */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
290 # ifdef VMS
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
291 # include <unixio.h> /* for off_t */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
292 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
293 # define z_off_t off_t
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
294 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
295 #ifndef SEEK_SET
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
296 # define SEEK_SET 0 /* Seek from beginning of file. */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
297 # define SEEK_CUR 1 /* Seek from current position. */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
298 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
299 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
300 #ifndef z_off_t
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
301 # define z_off_t long
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
302 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
303
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
304 #if defined(__OS400__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
305 # define NO_vsnprintf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
306 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
307
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
308 #if defined(__MVS__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
309 # define NO_vsnprintf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
310 # ifdef FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
311 # undef FAR
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
312 # endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
313 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
314
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
315 /* MVS linker does not support external names larger than 8 bytes */
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
316 #if defined(__MVS__)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
317 # pragma map(deflateInit_,"DEIN")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
318 # pragma map(deflateInit2_,"DEIN2")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
319 # pragma map(deflateEnd,"DEEND")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
320 # pragma map(deflateBound,"DEBND")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
321 # pragma map(inflateInit_,"ININ")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
322 # pragma map(inflateInit2_,"ININ2")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
323 # pragma map(inflateEnd,"INEND")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
324 # pragma map(inflateSync,"INSY")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
325 # pragma map(inflateSetDictionary,"INSEDI")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
326 # pragma map(compressBound,"CMBND")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
327 # pragma map(inflate_table,"INTABL")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
328 # pragma map(inflate_fast,"INFA")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
329 # pragma map(inflate_copyright,"INCOPY")
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
330 #endif
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
331
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
332 #endif /* ZCONF_H */