diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-03-13 23:48:36 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-03-13 23:48:36 +0000 |
| commit | 280d433d4c13f3b31722d446ec868053887caf06 (patch) | |
| tree | 7ba0c0678315c114dcef41857e7710f6b3e31bc5 /examples/zpipe.c | |
| parent | f4695a30267c5d31987c7bc3eda906f55a8761be (diff) | |
Vendor import of zlib 1.3.2.vendor/zlib/1.3.2vendor/zlib
Diffstat (limited to 'examples/zpipe.c')
| -rw-r--r-- | examples/zpipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/zpipe.c b/examples/zpipe.c index 83535d169358..021c85089028 100644 --- a/examples/zpipe.c +++ b/examples/zpipe.c @@ -1,6 +1,6 @@ /* zpipe.c: example of proper use of zlib's inflate() and deflate() Not copyrighted -- provided to the public domain - Version 1.4 11 December 2005 Mark Adler */ + Version 1.5 11 February 2026 Mark Adler */ /* Version history: 1.0 30 Oct 2004 First version @@ -10,6 +10,7 @@ 1.3 6 Apr 2005 Remove incorrect assertion in inf() 1.4 11 Dec 2005 Add hack to avoid MSDOS end-of-line conversions Avoid some compiler warnings for input and output buffers + 1.5 11 Feb 2026 Use underscores for Windows POSIX names */ #include <stdio.h> @@ -20,7 +21,7 @@ #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) # include <fcntl.h> # include <io.h> -# 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 |
