Overview
| Artifact ID: | 350cd196e98285f5d3d89eef73f5819d586ebfc5 |
|---|---|
| Ticket: | 2651823fffffffffffffffffffffffffffffffff
Tcl_StatBuf definition problem with VS2005 and Win XP x64 |
| User & Date: | patthoyts on 2009-04-30 04:51:06 |
Changes
- icomment:
The applied patch fixes the build with MSVC 2008 but breaks it for every other version so I reverted the patch from both branches. In tclWinFile.c NativeStat function we explicitly assign all the time members as time_t and the size member as a Tcl_WideInt. So all the ifdeffery is just to try to obtain a stat structure that matches this usage. Once upon a time (msvc6 up to msvc8) this was _stati64. More recently this structure has disappeared and in msvc9 we need to use _stat32i64 on ix86 and stat64 on x86_64. Who is to say what they'll do next time around. So I suggest we define it thusly: struct Tcl_StatBuf_ { _dev_t st_dev; _ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; _dev_t st_rdev; Tcl_WideInt st_size; time_t st_atime; time_t st_mtime; time_t st_ctime; }; I've been building a version of tcl with that and so far it seems robust. tclvfs works with this which seemed like the most likely candidate to fail in the face of Tcl_StatBuf mismatches. - login: "patthoyts"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "patthoyts"