diff options
Diffstat (limited to 'zconf.h')
-rw-r--r-- | zconf.h | 122 |
1 files changed, 93 insertions, 29 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* zconf.h -- configuration of the zlib compression library | 1 | /* zconf.h -- configuration of the zlib compression library |
2 | * Copyright (C) 1995-2005 Jean-loup Gailly. | 2 | * Copyright (C) 1995-2006 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 | ||
@@ -11,52 +11,115 @@ | |||
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 | ||
15 | * this permanently in zconf.h using "./configure --zprefix". | ||
14 | */ | 16 | */ |
15 | #ifdef Z_PREFIX | 17 | #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ |
16 | # define deflateInit_ z_deflateInit_ | 18 | |
19 | /* all linked symbols */ | ||
20 | # define _dist_code z__dist_code | ||
21 | # define _length_code z__length_code | ||
22 | # define _tr_align z__tr_align | ||
23 | # define _tr_flush_block z__tr_flush_block | ||
24 | # define _tr_init z__tr_init | ||
25 | # define _tr_stored_block z__tr_stored_block | ||
26 | # define _tr_tally z__tr_tally | ||
27 | # define adler32 z_adler32 | ||
28 | # define adler32_combine z_adler32_combine | ||
29 | # define compress z_compress | ||
30 | # define compress2 z_compress2 | ||
31 | # define compressBound z_compressBound | ||
32 | # define crc32 z_crc32 | ||
33 | # define crc32_combine z_crc32_combine | ||
17 | # define deflate z_deflate | 34 | # define deflate z_deflate |
35 | # define deflateBound z_deflateBound | ||
36 | # define deflateCopy z_deflateCopy | ||
18 | # define deflateEnd z_deflateEnd | 37 | # define deflateEnd z_deflateEnd |
19 | # define inflateInit_ z_inflateInit_ | ||
20 | # define inflate z_inflate | ||
21 | # define inflateEnd z_inflateEnd | ||
22 | # define deflateInit2_ z_deflateInit2_ | 38 | # define deflateInit2_ z_deflateInit2_ |
23 | # define deflateSetDictionary z_deflateSetDictionary | 39 | # define deflateInit_ z_deflateInit_ |
24 | # define deflateCopy z_deflateCopy | ||
25 | # define deflateReset z_deflateReset | ||
26 | # define deflateParams z_deflateParams | 40 | # define deflateParams z_deflateParams |
27 | # define deflateBound z_deflateBound | ||
28 | # define deflatePrime z_deflatePrime | 41 | # define deflatePrime z_deflatePrime |
42 | # define deflateReset z_deflateReset | ||
43 | # define deflateSetDictionary z_deflateSetDictionary | ||
44 | # define deflateSetHeader z_deflateSetHeader | ||
45 | # define deflateTune z_deflateTune | ||
46 | # define deflate_copyright z_deflate_copyright | ||
47 | # define get_crc_table z_get_crc_table | ||
48 | # define gzclearerr z_gzclearerr | ||
49 | # define gzclose z_gzclose | ||
50 | # define gzdirect z_gzdirect | ||
51 | # define gzdopen z_gzdopen | ||
52 | # define gzeof z_gzeof | ||
53 | # define gzerror z_gzerror | ||
54 | # define gzflush z_gzflush | ||
55 | # define gzgetc z_gzgetc | ||
56 | # define gzgets z_gzgets | ||
57 | # define gzopen z_gzopen | ||
58 | # define gzprintf z_gzprintf | ||
59 | # define gzputc z_gzputc | ||
60 | # define gzputs z_gzputs | ||
61 | # define gzread z_gzread | ||
62 | # define gzrewind z_gzrewind | ||
63 | # define gzseek z_gzseek | ||
64 | # define gzsetparams z_gzsetparams | ||
65 | # define gztell z_gztell | ||
66 | # define gzungetc z_gzungetc | ||
67 | # define gzwrite z_gzwrite | ||
68 | # define inflate z_inflate | ||
69 | # define inflateBack z_inflateBack | ||
70 | # define inflateBackEnd z_inflateBackEnd | ||
71 | # define inflateBackInit_ z_inflateBackInit_ | ||
72 | # define inflateCopy z_inflateCopy | ||
73 | # define inflateEnd z_inflateEnd | ||
74 | # define inflateGetHeader z_inflateGetHeader | ||
29 | # define inflateInit2_ z_inflateInit2_ | 75 | # define inflateInit2_ z_inflateInit2_ |
76 | # define inflateInit_ z_inflateInit_ | ||
77 | # define inflatePrime z_inflatePrime | ||
78 | # define inflateReset z_inflateReset | ||
30 | # define inflateSetDictionary z_inflateSetDictionary | 79 | # define inflateSetDictionary z_inflateSetDictionary |
31 | # define inflateSync z_inflateSync | 80 | # define inflateSync z_inflateSync |
32 | # define inflateSyncPoint z_inflateSyncPoint | 81 | # define inflateSyncPoint z_inflateSyncPoint |
33 | # define inflateCopy z_inflateCopy | 82 | # define inflate_copyright z_inflate_copyright |
34 | # define inflateReset z_inflateReset | 83 | # define inflate_fast z_inflate_fast |
35 | # define inflateBack z_inflateBack | 84 | # define inflate_table z_inflate_table |
36 | # define inflateBackEnd z_inflateBackEnd | ||
37 | # define compress z_compress | ||
38 | # define compress2 z_compress2 | ||
39 | # define compressBound z_compressBound | ||
40 | # define uncompress z_uncompress | 85 | # define uncompress z_uncompress |
41 | # define adler32 z_adler32 | ||
42 | # define crc32 z_crc32 | ||
43 | # define get_crc_table z_get_crc_table | ||
44 | # define zError z_zError | 86 | # define zError z_zError |
87 | # define z_errmsg z_z_errmsg | ||
88 | # define zcalloc z_zcalloc | ||
89 | # define zcfree z_zcfree | ||
90 | # define zlibCompileFlags z_zlibCompileFlags | ||
91 | # define zlibVersion z_zlibVersion | ||
45 | 92 | ||
93 | /* all zlib typedefs in zlib.h and zconf.h */ | ||
94 | # define Byte z_Byte | ||
95 | # define Bytef z_Bytef | ||
46 | # define alloc_func z_alloc_func | 96 | # define alloc_func z_alloc_func |
97 | # define charf z_charf | ||
47 | # define free_func z_free_func | 98 | # define free_func z_free_func |
99 | # define gzFile z_gzFile | ||
100 | # define gz_header z_gz_header | ||
101 | # define gz_headerp z_gz_headerp | ||
48 | # define in_func z_in_func | 102 | # define in_func z_in_func |
103 | # define intf z_intf | ||
49 | # define out_func z_out_func | 104 | # define out_func z_out_func |
50 | # define Byte z_Byte | ||
51 | # define uInt z_uInt | 105 | # define uInt z_uInt |
52 | # define uLong z_uLong | ||
53 | # define Bytef z_Bytef | ||
54 | # define charf z_charf | ||
55 | # define intf z_intf | ||
56 | # define uIntf z_uIntf | 106 | # define uIntf z_uIntf |
107 | # define uLong z_uLong | ||
57 | # define uLongf z_uLongf | 108 | # define uLongf z_uLongf |
58 | # define voidpf z_voidpf | ||
59 | # define voidp z_voidp | 109 | # define voidp z_voidp |
110 | # define voidp z_voidp | ||
111 | # define voidpc z_voidpc | ||
112 | # define voidpc z_voidpc | ||
113 | # define voidpf z_voidpf | ||
114 | # define voidpf z_voidpf | ||
115 | # define z_stream z_z_stream | ||
116 | # define z_streamp z_z_streamp | ||
117 | |||
118 | /* all zlib structs in zlib.h and zconf.h */ | ||
119 | # define gz_header_s z_gz_header_s | ||
120 | # define internal_state z_internal_state | ||
121 | # define z_stream_s z_z_stream_s | ||
122 | |||
60 | #endif | 123 | #endif |
61 | 124 | ||
62 | #if defined(__MSDOS__) && !defined(MSDOS) | 125 | #if defined(__MSDOS__) && !defined(MSDOS) |
@@ -243,6 +306,10 @@ | |||
243 | # endif | 306 | # endif |
244 | #endif | 307 | #endif |
245 | 308 | ||
309 | #ifdef HAVE_VISIBILITY_PRAGMA | ||
310 | # define ZEXTERN __attribute__((visibility ("default"))) extern | ||
311 | #endif | ||
312 | |||
246 | #ifndef ZEXTERN | 313 | #ifndef ZEXTERN |
247 | # define ZEXTERN extern | 314 | # define ZEXTERN extern |
248 | #endif | 315 | #endif |
@@ -307,9 +374,6 @@ typedef uLong FAR uLongf; | |||
307 | 374 | ||
308 | #if defined(__MVS__) | 375 | #if defined(__MVS__) |
309 | # define NO_vsnprintf | 376 | # define NO_vsnprintf |
310 | # ifdef FAR | ||
311 | # undef FAR | ||
312 | # endif | ||
313 | #endif | 377 | #endif |
314 | 378 | ||
315 | /* MVS linker does not support external names larger than 8 bytes */ | 379 | /* MVS linker does not support external names larger than 8 bytes */ |