diff options
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 |