diff options
Diffstat (limited to 'minigzip.c')
-rw-r--r-- | minigzip.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -32,6 +32,9 @@ | |||
32 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | 32 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) |
33 | # include <fcntl.h> | 33 | # include <fcntl.h> |
34 | # include <io.h> | 34 | # include <io.h> |
35 | # ifdef UNDER_CE | ||
36 | # include <stdlib.h> | ||
37 | # endif | ||
35 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) | 38 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |
36 | #else | 39 | #else |
37 | # define SET_BINARY_MODE(file) | 40 | # define SET_BINARY_MODE(file) |
@@ -50,9 +53,11 @@ | |||
50 | # include <unix.h> /* for fileno */ | 53 | # include <unix.h> /* for fileno */ |
51 | #endif | 54 | #endif |
52 | 55 | ||
56 | #if !defined(Z_HAVE_UNISTD_H) && _LARGEFILE64_SOURCE+0 != 1 | ||
53 | #ifndef WIN32 /* unlink already in stdio.h for WIN32 */ | 57 | #ifndef WIN32 /* unlink already in stdio.h for WIN32 */ |
54 | extern int unlink OF((const char *)); | 58 | extern int unlink OF((const char *)); |
55 | #endif | 59 | #endif |
60 | #endif | ||
56 | 61 | ||
57 | #if defined(UNDER_CE) | 62 | #if defined(UNDER_CE) |
58 | # include <windows.h> | 63 | # include <windows.h> |