diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gznorm.c | 2 | ||||
-rw-r--r-- | examples/zpipe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/gznorm.c b/examples/gznorm.c index 68e0a0f..2a1dda8 100644 --- a/examples/gznorm.c +++ b/examples/gznorm.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | 24 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) |
25 | # include <fcntl.h> | 25 | # include <fcntl.h> |
26 | # include <io.h> | 26 | # include <io.h> |
27 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) | 27 | # define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) |
28 | #else | 28 | #else |
29 | # define SET_BINARY_MODE(file) | 29 | # define SET_BINARY_MODE(file) |
30 | #endif | 30 | #endif |
diff --git a/examples/zpipe.c b/examples/zpipe.c index 83535d1..184fce5 100644 --- a/examples/zpipe.c +++ b/examples/zpipe.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | 20 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) |
21 | # include <fcntl.h> | 21 | # include <fcntl.h> |
22 | # include <io.h> | 22 | # include <io.h> |
23 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) | 23 | # define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) |
24 | #else | 24 | #else |
25 | # define SET_BINARY_MODE(file) | 25 | # define SET_BINARY_MODE(file) |
26 | #endif | 26 | #endif |