Overview
| Artifact ID: | f3da62b2f801268e369b509f8a36c465d30319f7 |
|---|---|
| Ticket: | 3474726fffffffffffffffffffffffffffffffff
minGW Tcl_StatBuf not defined correctly in tcl.h |
| User & Date: | nijtmans on 2012-01-18 15:15:35 |
Changes
- assignee changed to: "nijtmans"
- closedate changed to: "2012-01-18T08:15:35"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 _stat32i64 is supposed to be defined in stat.h, since VS2005, See: http://msdn.microsoft.com/en-us/library/14h5k7ff%28v=vs.80%29.aspx Before that, this structure was named _stati64, but since VS2005 the _stati64 definition became dependent on the _USE_32BIT_TIME_T macro. We cannot force extensions to set _USE_32BIT_TIME_T, therefore the workaround to include the _stat32i64 structure in tclWinPort.h if not available elsewhere. The real solution is to use a mingw version which has a _stat32i64 definition in sys/stat.h. Another workaround for freewrap could be to use the fact that if _USE_32BIT_TIME_T is defined that then _stati64 is the same as _stat32i64. So, freewrap could use something like (untested!!!): #define _USE_32BIT_TIME_T #include <sys/stat.h> #ifndef _stat32i64 # define _stat32i64 _stati64 #endif #include <tcl.h> See bug 3288345 for more details where this problem come from. Anyway, it's up to mingw to provide a _stat32i64 definition, or up to freewrap to provide a workaround when it wants to support a mingw version which lacks _stat32i64 - login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "nijtmans"