From 78c31141ab5b3f258a7ba76c536173acdd2f5d6a Mon Sep 17 00:00:00 2001 From: mdejong Date: Tue, 17 Jul 2001 18:33:24 +0000 Subject: * win/tclWinPort.h: Add Cygwin specific defines for environ and timezone variables. --- ChangeLog | 5 +++++ win/tclWinPort.h | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29a5c67..415d99e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-07-17 Mo DeJong + + * win/tclWinPort.h: Add Cygwin specific defines for environ + and timezone variables. + 2001-07-17 Andreas Kupries * generic/tclIO.c (GetInput): Fixed [SF #427196]. Memory was diff --git a/win/tclWinPort.h b/win/tclWinPort.h index efc2441..3b223b8 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinPort.h,v 1.15 2001/07/16 23:30:16 mdejong Exp $ + * RCS: @(#) $Id: tclWinPort.h,v 1.16 2001/07/17 18:33:24 mdejong Exp $ */ #ifndef _TCLWINPORT @@ -343,6 +343,13 @@ typedef float *TCHAR; # endif #endif /* _MSC_VER || __MINGW32__ */ +#ifdef __CYGWIN__ +/* On cygwin32, the environment is imported from the cygwin32 DLL. */ + DLLIMPORT extern char **__cygwin_environ; +# define environ __cygwin_environ +# define timezone _timezone +#endif /* __CYGWIN__ */ + /* * There is no platform-specific panic routine for Windows in the Tcl internals. */ -- cgit v0.12