diff options
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -3,9 +3,9 @@ | |||
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 | #ifdef _LARGEFILE64_SOURCE | 6 | #if _LARGEFILE64_SOURCE == 1 |
7 | # ifndef _LARGEFILE_SOURCE | 7 | # ifndef _LARGEFILE_SOURCE |
8 | # define _LARGEFILE_SOURCE | 8 | # define _LARGEFILE_SOURCE 1 |
9 | # endif | 9 | # endif |
10 | # ifdef _FILE_OFFSET_BITS | 10 | # ifdef _FILE_OFFSET_BITS |
11 | # undef _FILE_OFFSET_BITS | 11 | # undef _FILE_OFFSET_BITS |
@@ -44,7 +44,7 @@ | |||
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /* get errno and strerror definition */ | 46 | /* get errno and strerror definition */ |
47 | #if defined UNDER_CE && defined NO_ERRNO_H | 47 | #if defined UNDER_CE |
48 | # include <windows.h> | 48 | # include <windows.h> |
49 | # define zstrerror() gz_strwinerror((DWORD)GetLastError()) | 49 | # define zstrerror() gz_strwinerror((DWORD)GetLastError()) |
50 | #else | 50 | #else |
@@ -56,13 +56,7 @@ | |||
56 | # endif | 56 | # endif |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | /* MVS fdopen() */ | 59 | #if _LARGEFILE64_SOURCE == 1 |
60 | #ifdef __MVS__ | ||
61 | #pragma map (fdopen , "\174\174FDOPEN") | ||
62 | FILE *fdopen(int, const char *); | ||
63 | #endif | ||
64 | |||
65 | #ifdef _LARGEFILE64_SOURCE | ||
66 | # define z_off64_t off64_t | 60 | # define z_off64_t off64_t |
67 | #else | 61 | #else |
68 | # define z_off64_t z_off_t | 62 | # define z_off64_t z_off_t |
@@ -117,7 +111,7 @@ typedef gz_state FAR *gz_statep; | |||
117 | 111 | ||
118 | /* shared functions */ | 112 | /* shared functions */ |
119 | ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); | 113 | ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); |
120 | #if defined UNDER_CE && defined NO_ERRNO_H | 114 | #if defined UNDER_CE |
121 | ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); | 115 | ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); |
122 | #endif | 116 | #endif |
123 | 117 | ||