diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-02-08 17:35:23 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-02-08 18:45:49 -0800 |
commit | 985a62d11802b44d1d1049ddd692038923da6f0b (patch) | |
tree | 172b0f970c0922ee919f4b4a141798abcec25c2e /gzguts.h | |
parent | 504403f3e468bca2dc85c055d96ad392e9c7aae0 (diff) | |
download | zlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.gz zlib-985a62d11802b44d1d1049ddd692038923da6f0b.tar.bz2 zlib-985a62d11802b44d1d1049ddd692038923da6f0b.zip |
Address Microsoft deprecation warnings.
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -17,6 +17,10 @@ | |||
17 | # define ZLIB_INTERNAL | 17 | # define ZLIB_INTERNAL |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS) | ||
21 | # define _CRT_SECURE_NO_WARNINGS | ||
22 | #endif | ||
23 | |||
20 | #include <stdio.h> | 24 | #include <stdio.h> |
21 | #include "zlib.h" | 25 | #include "zlib.h" |
22 | #ifdef STDC | 26 | #ifdef STDC |
@@ -36,13 +40,14 @@ | |||
36 | 40 | ||
37 | #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) | 41 | #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) |
38 | # include <io.h> | 42 | # include <io.h> |
43 | # include <sys/stat.h> | ||
39 | #endif | 44 | #endif |
40 | 45 | ||
41 | #if defined(_WIN32) | 46 | #if defined(_WIN32) && !defined(WIDECHAR) |
42 | # define WIDECHAR | 47 | # define WIDECHAR |
43 | #endif | 48 | #endif |
44 | 49 | ||
45 | #ifdef WINAPI_FAMILY | 50 | #if defined(_WIN32) || defined(WINAPI_FAMILY) |
46 | # define open _open | 51 | # define open _open |
47 | # define read _read | 52 | # define read _read |
48 | # define write _write | 53 | # define write _write |