diff options
Diffstat (limited to 'generic/tclPort.h')
-rw-r--r-- | generic/tclPort.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/generic/tclPort.h b/generic/tclPort.h index f4fb831..7c9bf3c 100644 --- a/generic/tclPort.h +++ b/generic/tclPort.h @@ -14,16 +14,27 @@ #ifndef _TCLPORT #define _TCLPORT +#ifdef HAVE_TCL_CONFIG_H +#include "tclConfig.h" +#endif +#if defined(_WIN32) +# include "tclWinPort.h" +#endif #include "tcl.h" +#if !defined(_WIN32) +# include "tclUnixPort.h" +#endif -#if defined(__WIN32__) -# include "tclWinPort.h" -#else -# if defined(MAC_TCL) -# include "tclMacPort.h" -# else -# 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) |