From: Bruno Haible Date: Thu, 12 Jun 2025 22:04:32 +0000 (+0200) Subject: stat: Add support for mingw 13 in 32-bit mode. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c8e4a7a8a824fe87df18933db8107aff8fed0e;p=thirdparty%2Fgnulib.git stat: Add support for mingw 13 in 32-bit mode. * lib/sys_stat.in.h (_stat32i64): Redirect to rpl_stat. --- diff --git a/ChangeLog b/ChangeLog index 5d6ccd6822..a12a1707c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-06-12 Bruno Haible + + stat: Add support for mingw 13 in 32-bit mode. + * lib/sys_stat.in.h (_stat32i64): Redirect to rpl_stat. + 2025-06-12 Bruno Haible dcomp-script: Reject D compilers with installation problems. diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 8bde5a7d63..c3c38fd653 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -849,7 +849,11 @@ _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " # elif @WINDOWS_64_BIT_ST_SIZE@ /* Above, we define stat to _stati64. */ # if defined __MINGW32__ && defined _stati64 -# ifndef _USE_32BIT_TIME_T +# ifdef _USE_32BIT_TIME_T + /* The system headers possibly define _stati64 to _stat32i64. */ +# undef _stat32i64 +# define _stat32i64(name, st) rpl_stat (name, st) +# else /* The system headers define _stati64 to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st)