diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2023-12-12 22:19:05 -0600 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2024-01-13 22:30:30 -0800 |
| commit | 4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9 (patch) | |
| tree | fe93bc63a330f3457ac5f88a6289a45a90937622 | |
| parent | 431a9b65eacab7efabf2230ba97ff426c0e07f9d (diff) | |
| download | zlib-4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.tar.gz zlib-4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.tar.bz2 zlib-4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.zip | |
Remove fdopen #defines in zutil.h.
fdopen() is not used by zlib anymore. The #defines are vestigial.
| -rw-r--r-- | zutil.h | 23 |
1 files changed, 1 insertions, 22 deletions
| @@ -137,17 +137,8 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | |||
| 137 | # endif | 137 | # endif |
| 138 | #endif | 138 | #endif |
| 139 | 139 | ||
| 140 | #if defined(MACOS) || defined(TARGET_OS_MAC) | 140 | #if defined(MACOS) |
| 141 | # define OS_CODE 7 | 141 | # define OS_CODE 7 |
| 142 | # ifndef Z_SOLO | ||
| 143 | # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os | ||
| 144 | # include <unix.h> /* for fdopen */ | ||
| 145 | # else | ||
| 146 | # ifndef fdopen | ||
| 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ||
| 148 | # endif | ||
| 149 | # endif | ||
| 150 | # endif | ||
| 151 | #endif | 142 | #endif |
| 152 | 143 | ||
| 153 | #ifdef __acorn | 144 | #ifdef __acorn |
| @@ -170,18 +161,6 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | |||
| 170 | # define OS_CODE 19 | 161 | # define OS_CODE 19 |
| 171 | #endif | 162 | #endif |
| 172 | 163 | ||
| 173 | #if defined(_BEOS_) || defined(RISCOS) | ||
| 174 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ||
| 175 | #endif | ||
| 176 | |||
| 177 | #if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX | ||
| 178 | # if defined(_WIN32_WCE) | ||
| 179 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ||
| 180 | # else | ||
| 181 | # define fdopen(fd,type) _fdopen(fd,type) | ||
| 182 | # endif | ||
| 183 | #endif | ||
| 184 | |||
| 185 | #if defined(__BORLANDC__) && !defined(MSDOS) | 164 | #if defined(__BORLANDC__) && !defined(MSDOS) |
| 186 | #pragma warn -8004 | 165 | #pragma warn -8004 |
| 187 | #pragma warn -8008 | 166 | #pragma warn -8008 |
