mingw defines __MSVCRT_VERSION__

Alexey Pushkin alexey.pushkin at mererand.com
Thu Mar 19 18:38:09 UTC 2009


Just define __MSVCRT_VERSION__=0x0601
and that'll work for you.

I never tried win2k, but on WinXP and others msvcrt.dll
does have all the xxx64() functions that require
__MSVCRT_VERSION__ >= 0x0601


Farkas Levente wrote:
> hi,
> while we try to compile gstreamer we got and error
> error: storage size of 'stat_results' isn't known
> and the reason is that because __stat64 is defined in
> /usr/i686-pc-mingw32/sys-root/mingw/include/sys/stat.h
> but only as :
> ----------------------------------------
> #if __MSVCRT_VERSION__ >= 0x0601
> struct __stat64
> {
>     _dev_t st_dev;
>     _ino_t st_ino;
>     _mode_t st_mode;
>     short st_nlink;
>     short st_uid;
>     short st_gid;
>     _dev_t st_rdev;
>     __int64 st_size;
>     __time64_t st_atime;
>     __time64_t st_mtime;
>     __time64_t st_ctime;
> };
> #endif /* __MSVCRT_VERSION__ */
> ----------------------------------------
> and at the same time in
> /usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h :
> ----------------------------------------
> #ifndef __MSVCRT_VERSION__
> /*  High byte is the major version, low byte is the minor. */
> # define __MSVCRT_VERSION__ 0x0600
> #endif
> ----------------------------------------
> may be it's not the right place to ask and would be better to move to
> mingw mailing list, but it's the right version?
> ie. the current runtime really not support __MSVCRT_VERSION__ >= 0x0601?
> thanks.
> yours.
> 




More information about the mingw mailing list