diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-02-09 16:42:36 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-02-09 20:11:54 -0800 |
commit | fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553 (patch) | |
tree | 880202f45d75dbdbde30125ef59c320e3b909349 /contrib | |
parent | ceac32f156c4d39bf991e1163223b8d910a258d3 (diff) | |
download | zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.tar.gz zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.tar.bz2 zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.zip |
Further address Microsoft deprecation warnings.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/puff/pufftest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/puff/pufftest.c b/contrib/puff/pufftest.c index 328cb9f..19230b9 100644 --- a/contrib/puff/pufftest.c +++ b/contrib/puff/pufftest.c | |||
@@ -16,6 +16,10 @@ | |||
16 | testing, and causes pufftest to fail with not enough output space (-f does | 16 | testing, and causes pufftest to fail with not enough output space (-f does |
17 | a write like -w, so -w is not required). */ | 17 | a write like -w, so -w is not required). */ |
18 | 18 | ||
19 | #if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE) | ||
20 | # define _CRT_NONSTDC_NO_DEPRECATE | ||
21 | #endif | ||
22 | |||
19 | #include <stdio.h> | 23 | #include <stdio.h> |
20 | #include <stdlib.h> | 24 | #include <stdlib.h> |
21 | #include "puff.h" | 25 | #include "puff.h" |
@@ -23,7 +27,7 @@ | |||
23 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) | 27 | #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) |
24 | # include <fcntl.h> | 28 | # include <fcntl.h> |
25 | # include <io.h> | 29 | # include <io.h> |
26 | # define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY) | 30 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |
27 | #else | 31 | #else |
28 | # define SET_BINARY_MODE(file) | 32 | # define SET_BINARY_MODE(file) |
29 | #endif | 33 | #endif |