libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status of the MSYS/MSVC port


From: Peter Rosin
Subject: Re: Status of the MSYS/MSVC port
Date: Wed, 28 Jan 2009 23:41:10 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Den 2009-01-28 23:36, skrev Roumen Petrov:
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

This was all inside #ifdef __MINGW32__, which assumes msvcrt.dll, i.e.
compatible with MSVC 6, so we're safe. I think. Famous last words...

Cheers,
Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]