summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-27 14:30:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-27 14:30:23 (GMT)
commit4457676798e94230b3296a67ab9caed2dc95e8d5 (patch)
tree2d8f5bc75247dd5e8de4083e7aae5b982df43e02 /generic
parentb412ad6981173a44ab0f31ad66b9c429b52ebe30 (diff)
downloadtcl-4457676798e94230b3296a67ab9caed2dc95e8d5.zip
tcl-4457676798e94230b3296a67ab9caed2dc95e8d5.tar.gz
tcl-4457676798e94230b3296a67ab9caed2dc95e8d5.tar.bz2
Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongs
Diffstat (limited to 'generic')
-rw-r--r--generic/tclEnv.c1
-rw-r--r--generic/tclPort.h12
2 files changed, 1 insertions, 12 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c
index 24fa106..bcc0ff1 100644
--- a/generic/tclEnv.c
+++ b/generic/tclEnv.c
@@ -696,6 +696,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 7c9bf3c..7021b8d 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.h
@@ -25,18 +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);
-#endif
-
#if !defined(LLONG_MIN)
# ifdef TCL_WIDE_INT_IS_LONG
# define LLONG_MIN LONG_MIN