From e071a815b4ff8fff5244e39b85e56311ec78c466 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Tue, 12 Feb 2002 14:39:48 +0000 Subject: * djgpp/ (new directory) * djgpp/Makefile (new): * unix/tclAppInit.c: * unix/tclMtherr.c: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPort.h: Early stage of DJGPP support for building Tcl on DOS. Dynamic loading isn't working, yet. Requires watt32 for the TCP/IP stack. No autoconf, yet. Barely tested, but makes a working exe that runs Tcl in protected-mode, flat memory. [exec] and pipes will need the most work as multi-tasking on DOS has to be carefully. --- unix/tclUnixPort.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 0fafe9f..f37d272 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.19 2002/02/08 09:33:03 hobbs Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.20 2002/02/12 14:39:48 davygrvy Exp $ */ #ifndef _TCLUNIXPORT @@ -456,7 +456,11 @@ extern double strtod(); * The default platform eol translation on Unix is TCL_TRANSLATE_LF. */ +#ifdef DJGPP +#define TCL_PLATFORM_TRANSLATION TCL_TRANSLATE_CRLF +#else #define TCL_PLATFORM_TRANSLATION TCL_TRANSLATE_LF +#endif /* * The following macros have trivial definitions, allowing generic code to -- cgit v0.12