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