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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019