diff options
Diffstat (limited to '')
-rw-r--r-- | examples/zpipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/zpipe.c b/examples/zpipe.c index 184fce5..51dec47 100644 --- a/examples/zpipe.c +++ b/examples/zpipe.c | |||
@@ -12,6 +12,10 @@ | |||
12 | Avoid some compiler warnings for input and output buffers | 12 | Avoid some compiler warnings for input and output buffers |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE) | ||
16 | # define _CRT_NONSTDC_NO_DEPRECATE | ||
17 | #endif | ||
18 | |||
15 | #include <stdio.h> | 19 | #include <stdio.h> |
16 | #include <string.h> | 20 | #include <string.h> |
17 | #include <assert.h> | 21 | #include <assert.h> |
@@ -20,7 +24,7 @@ | |||
20 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | 24 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) |
21 | # include <fcntl.h> | 25 | # include <fcntl.h> |
22 | # include <io.h> | 26 | # include <io.h> |
23 | # define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) | 27 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |
24 | #else | 28 | #else |
25 | # define SET_BINARY_MODE(file) | 29 | # define SET_BINARY_MODE(file) |
26 | #endif | 30 | #endif |