| OLD | NEW |
| 1 /* zutil.h -- internal interface and configuration of the compression library | 1 /* zutil.h -- internal interface and configuration of the compression library |
| 2 * Copyright (C) 1995-2010 Jean-loup Gailly. | 2 * Copyright (C) 1995-2010 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 |
| 6 /* WARNING: this file should *not* be used by applications. It is | 6 /* WARNING: this file should *not* be used by applications. It is |
| 7 part of the implementation of the compression library and is | 7 part of the implementation of the compression library and is |
| 8 subject to change. Applications should only use zlib.h. | 8 subject to change. Applications should only use zlib.h. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 # ifndef fdopen | 135 # ifndef fdopen |
| 136 # define fdopen(fd,mode) NULL /* No fdopen() */ | 136 # define fdopen(fd,mode) NULL /* No fdopen() */ |
| 137 # endif | 137 # endif |
| 138 # endif | 138 # endif |
| 139 #endif | 139 #endif |
| 140 | 140 |
| 141 #ifdef TOPS20 | 141 #ifdef TOPS20 |
| 142 # define OS_CODE 0x0a | 142 # define OS_CODE 0x0a |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 #ifdef _MSC_VER | |
| 146 #define zalign(x) __declspec(align(x)) | |
| 147 #else | |
| 148 #define zalign(x) __attribute__((aligned((x)))) | |
| 149 #endif | |
| 150 | |
| 151 #ifdef WIN32 | 145 #ifdef WIN32 |
| 152 # ifndef __CYGWIN__ /* Cygwin is Unix, not Win32 */ | 146 # ifndef __CYGWIN__ /* Cygwin is Unix, not Win32 */ |
| 153 # define OS_CODE 0x0b | 147 # define OS_CODE 0x0b |
| 154 # endif | 148 # endif |
| 155 #endif | 149 #endif |
| 156 | 150 |
| 157 #ifdef __50SERIES /* Prime/PRIMOS */ | 151 #ifdef __50SERIES /* Prime/PRIMOS */ |
| 158 # define OS_CODE 0x0f | 152 # define OS_CODE 0x0f |
| 159 #endif | 153 #endif |
| 160 | 154 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items, | 280 voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items, |
| 287 unsigned size)); | 281 unsigned size)); |
| 288 void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr)); | 282 void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr)); |
| 289 | 283 |
| 290 #define ZALLOC(strm, items, size) \ | 284 #define ZALLOC(strm, items, size) \ |
| 291 (*((strm)->zalloc))((strm)->opaque, (items), (size)) | 285 (*((strm)->zalloc))((strm)->opaque, (items), (size)) |
| 292 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) | 286 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) |
| 293 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} | 287 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} |
| 294 | 288 |
| 295 #endif /* ZUTIL_H */ | 289 #endif /* ZUTIL_H */ |
| OLD | NEW |