diff options
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -15,10 +15,12 @@ | |||
15 | #define ZLIB_INTERNAL | 15 | #define ZLIB_INTERNAL |
16 | 16 | ||
17 | #include <stdio.h> | 17 | #include <stdio.h> |
18 | #include <stdlib.h> | ||
19 | #include <string.h> | ||
20 | #include <fcntl.h> | ||
21 | #include "zlib.h" | 18 | #include "zlib.h" |
19 | #ifdef STDC | ||
20 | # include <string.h> | ||
21 | # include <stdlib.h> | ||
22 | #endif | ||
23 | #include <fcntl.h> | ||
22 | 24 | ||
23 | #ifdef NO_DEFLATE /* for compatibility with old definition */ | 25 | #ifdef NO_DEFLATE /* for compatibility with old definition */ |
24 | # define NO_GZCOMPRESS | 26 | # define NO_GZCOMPRESS |
@@ -42,7 +44,8 @@ | |||
42 | 44 | ||
43 | /* get errno and strerror definition */ | 45 | /* get errno and strerror definition */ |
44 | #if defined UNDER_CE && defined NO_ERRNO_H | 46 | #if defined UNDER_CE && defined NO_ERRNO_H |
45 | # define zstrerror(errnum) strwinerror((DWORD)errnum) | 47 | # include <windows.h> |
48 | # define zstrerror() gz_strwinerror((DWORD)GetLastError()) | ||
46 | #else | 49 | #else |
47 | # ifdef STDC | 50 | # ifdef STDC |
48 | # include <errno.h> | 51 | # include <errno.h> |
@@ -54,7 +57,7 @@ | |||
54 | 57 | ||
55 | /* MVS fdopen() */ | 58 | /* MVS fdopen() */ |
56 | #ifdef __MVS__ | 59 | #ifdef __MVS__ |
57 | # pragma map (fdopen , "\174\174FDOPEN") | 60 | #pragma map (fdopen , "\174\174FDOPEN") |
58 | FILE *fdopen(int, const char *); | 61 | FILE *fdopen(int, const char *); |
59 | #endif | 62 | #endif |
60 | 63 | ||
@@ -106,4 +109,7 @@ typedef struct { | |||
106 | typedef gz_state FAR *gz_statep; | 109 | typedef gz_state FAR *gz_statep; |
107 | 110 | ||
108 | /* shared functions */ | 111 | /* shared functions */ |
109 | ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, char *)); | 112 | ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); |
113 | #if defined UNDER_CE && defined NO_ERRNO_H | ||
114 | ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); | ||
115 | #endif | ||