Sorry for previous patch -- I often link to msvcr120.dll instead of
msvcrt.dll.
For normal linking to msvcrt.dll the patch should be bigger -- we should
add _fstat32i64, _stat32i64, _wstat32i64, _ftime32 aliases to 32-bit
version of libmsvcrt.a (these functions are present in libmsvcr120.a).
I've prepared small patch for _mingw_stat64.h and mkstemp.c files.
First problem is that in _mingw_stat64.h header file #define section for
_USE_32BIT_TIME_T case is switched from
#define new_name msvcrt_function
to
#define msvcrt_function new_name
which is nonsense. ffmpeg in file libavfor