]> Savannah Git Hosting - gnulib.git/commitdiff
mkdir: Fix for use of posixcheck module on native Windows.
authorBruno Haible <bruno@clisp.org>
Tue, 27 Aug 2024 20:00:54 +0000 (22:00 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 27 Aug 2024 20:00:54 +0000 (22:00 +0200)
* lib/sys_stat.in.h (mkdir): Give priority to the native Windows
definition over the GNULIB_POSIXCHECK redefinition.

ChangeLog
lib/sys_stat.in.h

index 446cd67aac22a6655ad605cdc5db87df3a66d0cc..2e60f867e3e3a9005168e5daf58efa357ac5f40c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-27  Bruno Haible  <bruno@clisp.org>
+
+       mkdir: Fix for use of posixcheck module on native Windows.
+       * lib/sys_stat.in.h (mkdir): Give priority to the native Windows
+       definition over the GNULIB_POSIXCHECK redefinition.
+
 2024-08-27  Bruno Haible  <bruno@clisp.org>
 
        windows-spawn: Fix clang warning.
index 531232bbc13312d3ccf1f7a34a1e485ea35e41e0..d2ecdb9da963daa2ac1d3deed58e5528b55c4a67 100644 (file)
@@ -675,12 +675,6 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
 _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
 # endif
 _GL_CXXALIASWARN (mkdir);
-#elif defined GNULIB_POSIXCHECK
-# undef mkdir
-# if HAVE_RAW_DECL_MKDIR
-_GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - "
-                 "use gnulib module mkdir for portability");
-# endif
 #elif @GNULIB_MDA_MKDIR@
 /* On native Windows, map 'mkdir' to '_mkdir', so that -loldnames is not
    required.  In C++ with GNULIB_NAMESPACE, avoid differences between
@@ -703,6 +697,12 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
 _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
 # endif
 _GL_CXXALIASWARN (mkdir);
+#elif defined GNULIB_POSIXCHECK
+# undef mkdir
+# if HAVE_RAW_DECL_MKDIR
+_GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - "
+                 "use gnulib module mkdir for portability");
+# endif
 #endif