diff options
Diffstat (limited to 'zutil.c')
-rw-r--r-- | zutil.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -9,8 +9,10 @@ | |||
9 | 9 | ||
10 | #include "zutil.h" | 10 | #include "zutil.h" |
11 | 11 | ||
12 | struct internal_state {int dummy;}; /* for buggy compilers */ | ||
13 | |||
12 | #ifndef __GO32__ | 14 | #ifndef __GO32__ |
13 | extern void exit __P((int)); | 15 | extern void exit OF((int)); |
14 | #endif | 16 | #endif |
15 | 17 | ||
16 | char *zlib_version = ZLIB_VERSION; | 18 | char *zlib_version = ZLIB_VERSION; |
@@ -129,7 +131,7 @@ void zcfree (voidp opaque, voidp ptr) | |||
129 | } | 131 | } |
130 | #endif /* __TURBOC__ */ | 132 | #endif /* __TURBOC__ */ |
131 | 133 | ||
132 | #if defined(M_I86CM) || defined(M_I86LM) /* MSC compact or large model */ | 134 | #if defined(MSDOS) && !defined(__TURBOC__) /* MSC */ |
133 | 135 | ||
134 | # define MY_ZCALLOC | 136 | # define MY_ZCALLOC |
135 | 137 | ||
@@ -150,14 +152,14 @@ void zcfree (voidp opaque, voidp ptr) | |||
150 | _hfree(ptr); | 152 | _hfree(ptr); |
151 | } | 153 | } |
152 | 154 | ||
153 | #endif /* defined(M_I86CM) || defined(M_I86LM) */ | 155 | #endif /* MSC */ |
154 | 156 | ||
155 | 157 | ||
156 | #ifndef MY_ZCALLOC /* Any system without a special alloc function */ | 158 | #ifndef MY_ZCALLOC /* Any system without a special alloc function */ |
157 | 159 | ||
158 | #ifndef __GO32__ | 160 | #ifndef __GO32__ |
159 | extern voidp calloc __P((uInt items, uInt size)); | 161 | extern voidp calloc OF((uInt items, uInt size)); |
160 | extern void free __P((voidp ptr)); | 162 | extern void free OF((voidp ptr)); |
161 | #endif | 163 | #endif |
162 | 164 | ||
163 | voidp zcalloc (opaque, items, size) | 165 | voidp zcalloc (opaque, items, size) |