summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-05-06 07:33:02 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-05-06 07:33:02 (GMT)
commitbb211a864a8fa1fec50e4e9f4ce1f5c70e481472 (patch)
treec6cfc129969a1305998dc4d0d21c574a1bcd6018 /unix/tclUnixPort.h
parent6ecdabe4f2d518ab87f49dd179775d25f1f678e2 (diff)
parent8ddc8d3dc4c93f40ea560dd246e97226baee3889 (diff)
downloadtcl-bb211a864a8fa1fec50e4e9f4ce1f5c70e481472.zip
tcl-bb211a864a8fa1fec50e4e9f4ce1f5c70e481472.tar.gz
tcl-bb211a864a8fa1fec50e4e9f4ce1f5c70e481472.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 636c760..fde1909 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -99,9 +99,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__)