aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-02-08 17:35:23 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-02-08 18:45:49 -0800
commit985a62d11802b44d1d1049ddd692038923da6f0b (patch)
tree172b0f970c0922ee919f4b4a141798abcec25c2e /examples
parent504403f3e468bca2dc85c055d96ad392e9c7aae0 (diff)
downloadzlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.gz
zlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.bz2
zlib-985a62d11802b44d1d1049ddd692038923da6f0b.zip
Address Microsoft deprecation warnings.
Diffstat (limited to 'examples')
-rw-r--r--examples/gznorm.c2
-rw-r--r--examples/zpipe.c2
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