aboutsummaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:09:18 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:09:18 -0700
commit23c69f10698301ae97709eb0bbfb371d66b99a08 (patch)
tree1956b671b3df8d12c315a38f33b190677ccd659e /zutil.c
parent6b834a58bdef976383cff6e2a83f353e668a9cf1 (diff)
downloadzlib-23c69f10698301ae97709eb0bbfb371d66b99a08.tar.gz
zlib-23c69f10698301ae97709eb0bbfb371d66b99a08.tar.bz2
zlib-23c69f10698301ae97709eb0bbfb371d66b99a08.zip
zlib 0.94v0.94
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/zutil.c b/zutil.c
index 2cddcff..1dce6fb 100644
--- a/zutil.c
+++ b/zutil.c
@@ -9,8 +9,10 @@
9 9
10#include "zutil.h" 10#include "zutil.h"
11 11
12struct internal_state {int dummy;}; /* for buggy compilers */
13
12#ifndef __GO32__ 14#ifndef __GO32__
13extern void exit __P((int)); 15extern void exit OF((int));
14#endif 16#endif
15 17
16char *zlib_version = ZLIB_VERSION; 18char *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__
159extern voidp calloc __P((uInt items, uInt size)); 161extern voidp calloc OF((uInt items, uInt size));
160extern void free __P((voidp ptr)); 162extern void free OF((voidp ptr));
161#endif 163#endif
162 164
163voidp zcalloc (opaque, items, size) 165voidp zcalloc (opaque, items, size)