From 985a62d11802b44d1d1049ddd692038923da6f0b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 8 Feb 2024 17:35:23 -0800 Subject: Address Microsoft deprecation warnings. --- examples/gznorm.c | 2 +- examples/zpipe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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 @@ #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) # include # include -# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) +# define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) #else # define SET_BINARY_MODE(file) #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 @@ #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) # include # include -# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) +# define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) #else # define SET_BINARY_MODE(file) #endif -- cgit v1.2.3-55-g6feb