diff options
Diffstat (limited to 'zutil.c')
-rw-r--r-- | zutil.c | 29 |
1 files changed, 26 insertions, 3 deletions
@@ -6,6 +6,9 @@ | |||
6 | /* @(#) $Id$ */ | 6 | /* @(#) $Id$ */ |
7 | 7 | ||
8 | #include "zutil.h" | 8 | #include "zutil.h" |
9 | #ifndef Z_SOLO | ||
10 | # include "gzguts.h" | ||
11 | #endif | ||
9 | 12 | ||
10 | #ifndef NO_DUMMY_DECL | 13 | #ifndef NO_DUMMY_DECL |
11 | struct internal_state {int dummy;}; /* for buggy compilers */ | 14 | struct internal_state {int dummy;}; /* for buggy compilers */ |
@@ -85,11 +88,31 @@ uLong ZEXPORT zlibCompileFlags() | |||
85 | #ifdef FASTEST | 88 | #ifdef FASTEST |
86 | flags += 1L << 21; | 89 | flags += 1L << 21; |
87 | #endif | 90 | #endif |
88 | #ifdef Z_SOLO | 91 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) |
89 | return flags; | 92 | # ifdef NO_vsnprintf |
93 | flags += 1L << 25; | ||
94 | # ifdef HAS_vsprintf_void | ||
95 | flags += 1L << 26; | ||
96 | # endif | ||
97 | # else | ||
98 | # ifdef HAS_vsnprintf_void | ||
99 | flags += 1L << 26; | ||
100 | # endif | ||
101 | # endif | ||
90 | #else | 102 | #else |
91 | return flags + gzflags(); | 103 | flags += 1L << 24; |
104 | # ifdef NO_snprintf | ||
105 | flags += 1L << 25; | ||
106 | # ifdef HAS_sprintf_void | ||
107 | flags += 1L << 26; | ||
108 | # endif | ||
109 | # else | ||
110 | # ifdef HAS_snprintf_void | ||
111 | flags += 1L << 26; | ||
112 | # endif | ||
113 | # endif | ||
92 | #endif | 114 | #endif |
115 | return flags; | ||
93 | } | 116 | } |
94 | 117 | ||
95 | #ifdef DEBUG | 118 | #ifdef DEBUG |