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 /gzguts.h | |
parent | ceac32f156c4d39bf991e1163223b8d910a258d3 (diff) | |
download | zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.tar.gz zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.tar.bz2 zlib-fd5fe8b17e27ab92dcc70ed4974915b8dbe2a553.zip |
Further address Microsoft deprecation warnings.
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -20,6 +20,9 @@ | |||
20 | #if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS) | 20 | #if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS) |
21 | # define _CRT_SECURE_NO_WARNINGS | 21 | # define _CRT_SECURE_NO_WARNINGS |
22 | #endif | 22 | #endif |
23 | #if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE) | ||
24 | # define _CRT_NONSTDC_NO_DEPRECATE | ||
25 | #endif | ||
23 | 26 | ||
24 | #include <stdio.h> | 27 | #include <stdio.h> |
25 | #include "zlib.h" | 28 | #include "zlib.h" |
@@ -40,7 +43,6 @@ | |||
40 | 43 | ||
41 | #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) | 44 | #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) |
42 | # include <io.h> | 45 | # include <io.h> |
43 | # include <share.h> | ||
44 | # include <sys/stat.h> | 46 | # include <sys/stat.h> |
45 | #endif | 47 | #endif |
46 | 48 | ||
@@ -48,13 +50,6 @@ | |||
48 | # define WIDECHAR | 50 | # define WIDECHAR |
49 | #endif | 51 | #endif |
50 | 52 | ||
51 | #if defined(_WIN32) || defined(WINAPI_FAMILY) | ||
52 | # define open _open | ||
53 | # define read _read | ||
54 | # define write _write | ||
55 | # define close _close | ||
56 | #endif | ||
57 | |||
58 | #ifdef NO_DEFLATE /* for compatibility with old definition */ | 53 | #ifdef NO_DEFLATE /* for compatibility with old definition */ |
59 | # define NO_GZCOMPRESS | 54 | # define NO_GZCOMPRESS |
60 | #endif | 55 | #endif |