diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-02-08 17:35:23 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-02-08 18:45:49 -0800 |
commit | 985a62d11802b44d1d1049ddd692038923da6f0b (patch) | |
tree | 172b0f970c0922ee919f4b4a141798abcec25c2e /examples/gznorm.c | |
parent | 504403f3e468bca2dc85c055d96ad392e9c7aae0 (diff) | |
download | zlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.gz zlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.bz2 zlib-985a62d11802b44d1d1049ddd692038923da6f0b.zip |
Address Microsoft deprecation warnings.
Diffstat (limited to 'examples/gznorm.c')
-rw-r--r-- | examples/gznorm.c | 2 |
1 files changed, 1 insertions, 1 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 |