diff options
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 45 |
1 files changed, 42 insertions, 3 deletions
@@ -31,9 +31,48 @@ | |||
31 | # define NO_GZCOMPRESS | 31 | # define NO_GZCOMPRESS |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #ifdef _MSC_VER | 34 | #if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) |
35 | # include <io.h> | 35 | # ifndef HAVE_VSNPRINTF |
36 | # define vsnprintf _vsnprintf | 36 | # define HAVE_VSNPRINTF |
37 | # endif | ||
38 | #endif | ||
39 | |||
40 | #if defined(__CYGWIN__) | ||
41 | # ifndef HAVE_VSNPRINTF | ||
42 | # define HAVE_VSNPRINTF | ||
43 | # endif | ||
44 | #endif | ||
45 | |||
46 | #ifndef HAVE_VSNPRINTF | ||
47 | # ifdef MSDOS | ||
48 | /* vsnprintf may exist on some MS-DOS compilers (DJGPP?), | ||
49 | but for now we just assume it doesn't. */ | ||
50 | # define NO_vsnprintf | ||
51 | # endif | ||
52 | # ifdef __TURBOC__ | ||
53 | # define NO_vsnprintf | ||
54 | # endif | ||
55 | # ifdef WIN32 | ||
56 | /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */ | ||
57 | # if !defined(vsnprintf) && !defined(NO_vsnprintf) | ||
58 | # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 ) | ||
59 | # include <io.h> | ||
60 | # define vsnprintf _vsnprintf | ||
61 | # endif | ||
62 | # endif | ||
63 | # endif | ||
64 | # ifdef __SASC | ||
65 | # define NO_vsnprintf | ||
66 | # endif | ||
67 | # ifdef VMS | ||
68 | # define NO_vsnprintf | ||
69 | # endif | ||
70 | # ifdef __OS400__ | ||
71 | # define NO_vsnprintf | ||
72 | # endif | ||
73 | # ifdef __MVS__ | ||
74 | # define NO_vsnprintf | ||
75 | # endif | ||
37 | #endif | 76 | #endif |
38 | 77 | ||
39 | #ifndef local | 78 | #ifndef local |