diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-27 14:37:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-27 14:37:37 (GMT) |
commit | 28eb0289077aad0052036addef782cce499d0857 (patch) | |
tree | cbb2ef3605bfac2d9176a53132f1329d8edcd7ac /generic | |
parent | b1b14e036e39b348932a8c24e424b79a67af2e00 (diff) | |
parent | 4457676798e94230b3296a67ab9caed2dc95e8d5 (diff) | |
download | tcl-28eb0289077aad0052036addef782cce499d0857.zip tcl-28eb0289077aad0052036addef782cce499d0857.tar.gz tcl-28eb0289077aad0052036addef782cce499d0857.tar.bz2 |
Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongs
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclEnv.c | 1 | ||||
-rw-r--r-- | generic/tclPort.h | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c index 72d6fba..e45ae6a 100644 --- a/generic/tclEnv.c +++ b/generic/tclEnv.c @@ -698,6 +698,7 @@ TclFinalizeEnvironment(void) * fork) and the Windows environment (in case the application TCL code calls * exec, which calls the Windows CreateProcess function). */ +DLLIMPORT extern void __stdcall SetEnvironmentVariableA(const char*, const char *); static void TclCygwinPutenv( diff --git a/generic/tclPort.h b/generic/tclPort.h index d9361ca..7021b8d 100644 --- a/generic/tclPort.h +++ b/generic/tclPort.h @@ -25,19 +25,6 @@ # include "tclUnixPort.h" #endif -#if defined(__CYGWIN__) -# define USE_PUTENV 1 -# define USE_PUTENV_FOR_UNSET 1 -/* On Cygwin, the environment is imported from the Cygwin DLL. */ -# define environ __cygwin_environ -# define timezone _timezone - DLLIMPORT extern char **__cygwin_environ; - DLLIMPORT extern int cygwin_conv_to_win32_path(const char *, char *); - DLLIMPORT extern int cygwin_posix_to_win32_path_list_buf_size(char *value); - DLLIMPORT extern void cygwin_posix_to_win32_path_list(char *buf, char *value); - //DLLIMPORT extern void __stdcall SetEnvironmentVariableA(const char*, const char *); -#endif - #if !defined(LLONG_MIN) # ifdef TCL_WIDE_INT_IS_LONG # define LLONG_MIN LONG_MIN |