ref: 5f43bab8bf5f49a708c736d549e0b7f08ae7c858
parent: 3f36047eff3a198b9cdac2f5cab4180427ce875f
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:30:11 EDT 2009
gzip: Distinguish PureC from TurboC on MSDOS.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-07-31 suzuki toshiya <[email protected]>
+ gzip: Distinguish PureC from TurboC on MSDOS.
+
+ * src/gzip/zutil.c (zcalloc, zcfree): Enable only for
+ MSDOS platform.
+
+2009-07-31 suzuki toshiya <[email protected]>
+
gxvalid: Insert PureC pragma to allow unevaluated variables.
* builds/atari/ATARI.H: Insert PureC pragma not to
--- a/src/gzip/zutil.c
+++ b/src/gzip/zutil.c
@@ -49,7 +49,7 @@
}
#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 @@
Assert(0, "zcfree: ptr not found");
}
#endif
-#endif /* __TURBOC__ */
+#endif /* MSDOS && __TURBOC__ */
#if defined(M_I86) && !defined(__32BIT__)