Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nijtmans"
  2. closedate changed to: "2012-01-18T08:15:35"
  3. closer changed to: "nijtmans"
  4. 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
    
    
  5. login: "nijtmans"
  6. mimetype: "text/plain"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"
  9. username: "nijtmans"