From 23c69f10698301ae97709eb0bbfb371d66b99a08 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:09:18 -0700 Subject: zlib 0.94 --- zutil.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'zutil.c') diff --git a/zutil.c b/zutil.c index 2cddcff..1dce6fb 100644 --- a/zutil.c +++ b/zutil.c @@ -9,8 +9,10 @@ #include "zutil.h" +struct internal_state {int dummy;}; /* for buggy compilers */ + #ifndef __GO32__ -extern void exit __P((int)); +extern void exit OF((int)); #endif char *zlib_version = ZLIB_VERSION; @@ -129,7 +131,7 @@ void zcfree (voidp opaque, voidp ptr) } #endif /* __TURBOC__ */ -#if defined(M_I86CM) || defined(M_I86LM) /* MSC compact or large model */ +#if defined(MSDOS) && !defined(__TURBOC__) /* MSC */ # define MY_ZCALLOC @@ -150,14 +152,14 @@ void zcfree (voidp opaque, voidp ptr) _hfree(ptr); } -#endif /* defined(M_I86CM) || defined(M_I86LM) */ +#endif /* MSC */ #ifndef MY_ZCALLOC /* Any system without a special alloc function */ #ifndef __GO32__ -extern voidp calloc __P((uInt items, uInt size)); -extern void free __P((voidp ptr)); +extern voidp calloc OF((uInt items, uInt size)); +extern void free OF((voidp ptr)); #endif voidp zcalloc (opaque, items, size) -- cgit v1.2.3-55-g6feb