summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-06 07:22:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-06 07:22:17 (GMT)
commit20db8704e2e5aaf679c2f9be0768b700f63cb44e (patch)
treef11783011695cf570c007373ac83ba242464253e /unix/tclUnixPort.h
parent899d253b0f46c71c7f85582cacf5f512042ff6c6 (diff)
parent9c28e9130dec0dfd158406aa5997ed811e5f699d (diff)
downloadtcl-20db8704e2e5aaf679c2f9be0768b700f63cb44e.zip
tcl-20db8704e2e5aaf679c2f9be0768b700f63cb44e.tar.gz
tcl-20db8704e2e5aaf679c2f9be0768b700f63cb44e.tar.bz2
Add support for Cygwin64, which has a 64-bit "long" type.
Binary compatibility with win64 requires that all stub entries use 32-bit long's, therefore the need for various wrapper functions/macros. For Tcl 9 a better solution is needed, but that cannot be done without introducing binary incompatibility.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 7cfeec0..08a4f44 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -95,9 +95,11 @@ typedef off_t Tcl_SeekOffset;
# define USE_PUTENV 1
# define USE_PUTENV_FOR_UNSET 1
/* On Cygwin, the environment is imported from the Cygwin DLL. */
+#ifndef __x86_64__
# define environ __cygwin_environ
-# define timezone _timezone
extern char **__cygwin_environ;
+#endif
+# define timezone _timezone
extern int TclOSstat(const char *name, void *statBuf);
extern int TclOSlstat(const char *name, void *statBuf);
#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)