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