diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-06 07:22:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-06 07:22:17 (GMT) |
commit | 8001283708a971dbd01e2de307ce8f5b1ac12ef3 (patch) | |
tree | f11783011695cf570c007373ac83ba242464253e /unix/tclUnixPort.h | |
parent | 1f2616960d0d0fb8b7e94ffa03d1bc77b677505a (diff) | |
parent | 896f59c3a26d5da37bff6cd1882683f653b05162 (diff) | |
download | tcl-8001283708a971dbd01e2de307ce8f5b1ac12ef3.zip tcl-8001283708a971dbd01e2de307ce8f5b1ac12ef3.tar.gz tcl-8001283708a971dbd01e2de307ce8f5b1ac12ef3.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.h | 4 |
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__) |