gzip: Distinguish PureC from TurboC on MSDOS.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:17 +09:00
parent 5baa5c0983
commit 4f9802468e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gzip: Distinguish PureC from TurboC on MSDOS.
* src/gzip/zutil.c (zcalloc, zcfree): Enable only for
MSDOS platform.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Insert PureC pragma to allow unevaluated variables.

View File

@ -49,7 +49,7 @@ void zmemzero(dest, len)
}
#endif
#ifdef __TURBOC__
#if defined( MSDOS ) && defined( __TURBOC__ )
#if (defined( __BORLANDC__) || !defined(SMALL_MEDIUM)) && !defined(__32BIT__)
/* Small and medium model in Turbo C are for now limited to near allocation
* with reduced MAX_WBITS and MAX_MEM_LEVEL
@ -126,7 +126,7 @@ void zcfree (voidpf opaque, voidpf ptr)
Assert(0, "zcfree: ptr not found");
}
#endif
#endif /* __TURBOC__ */
#endif /* MSDOS && __TURBOC__ */
#if defined(M_I86) && !defined(__32BIT__)