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