_mingw_stat64.h: Define _fstat, _stat and _wstat to *32 variants when appropriate. *32 variants are handled by importlibs for crts that need it anyway and unsuffixed variants don't exist in ucrt runtime.
diff --git a/mingw-w64-headers/crt/_mingw_stat64.h b/mingw-w64-headers/crt/_mingw_stat64.h index d9909a8..00b68ce 100644 --- a/mingw-w64-headers/crt/_mingw_stat64.h +++ b/mingw-w64-headers/crt/_mingw_stat64.h
@@ -1,17 +1,14 @@ #ifndef _STAT_DEFINED #ifdef _USE_32BIT_TIME_T -#if __MSVCRT_VERSION__ >= 0x1400 #define _fstat _fstat32 #define _stat _stat32 #define _wstat _wstat32 +#if __MSVCRT_VERSION__ >= 0x1400 #define _fstati64 _fstat32i64 #define _stati64 _stat32i64 #define _wstati64 _wstat32i64 #else -#define _fstat32 _fstat -#define _stat32 _stat -#define _wstat32 _wstat #define _fstat32i64 _fstati64 #define _stat32i64 _stati64 #define _wstat32i64 _wstati64