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