]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
stat: Add support for mingw 13 in 32-bit mode.
authorBruno Haible <bruno@clisp.org>
Thu, 12 Jun 2025 22:04:32 +0000 (00:04 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Jun 2025 22:05:41 +0000 (00:05 +0200)
* lib/sys_stat.in.h (_stat32i64): Redirect to rpl_stat.

ChangeLog
lib/sys_stat.in.h

index 5d6ccd6822f37d4781cd10ca991dcaf24ff6b2a4..a12a1707c95695e61f96d541c6620eb9fc095973 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-06-12  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        dcomp-script: Reject D compilers with installation problems.
index 8bde5a7d63119761d0481eb59bac92e5ac79871b..c3c38fd653e0705eeebaea2b7b837924b24a06e7 100644 (file)
@@ -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)