diff options
author | mdejong <mdejong> | 2001-07-17 18:33:24 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2001-07-17 18:33:24 (GMT) |
commit | 78c31141ab5b3f258a7ba76c536173acdd2f5d6a (patch) | |
tree | 2d7c8176ca99df149e807336459a4918acf0241b /win/tclWinPort.h | |
parent | a79f038e6861042e3ab4d463e61d3ec90d8772b5 (diff) | |
download | tcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.zip tcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.tar.gz tcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.tar.bz2 |
* win/tclWinPort.h: Add Cygwin specific defines for environ
and timezone variables.
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r-- | win/tclWinPort.h | 9 |
1 files changed, 8 insertions, 1 deletions
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. */ |