|
From: | Roumen Petrov |
Subject: | Re: Status of the MSYS/MSVC port |
Date: | Thu, 29 Jan 2009 00:36:55 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081226 SeaMonkey/1.1.14 |
Peter Rosin wrote:
Den 2009-01-28 04:25 skrev Charles Wilson:Peter Rosin wrote:
[SNIP]
#ifndef _STAT_DEFINED struct _stat {
[SNIP]
}; #endif /* _STAT_DEFINED */ int _stat (const char *, struct _stat *);
[SNIP]I think that we has to be careful about structure _stat and version of msvcrt (>=8.0) - it depend from definition of time_t 32/64 bit and the size is deferent depending from an another macro. May be wrapper has to include MSVC headers.
According to MSDN:Function _stat is linked to __stat64i32 or __stat32 if _USE_32BIT_TIME_T is defined. I post "initial version" of a patch as feature request to mingw tracker that implement 64 bit time if __MSVCRT_VERSION__ >= 0x0800. My patch need independent tests and confirmation but this is mingw issue.
time_t = 32 for <= MSVC NET(?), i.e. msvcrt < 8.0 time_t = 64/32 for MSVC 2003, i.e msvcrt >= 8.0 Roumen
[Prev in Thread] | Current Thread | [Next in Thread] |