[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mkdir on MSVC
From: |
Bruno Haible |
Subject: |
mkdir on MSVC |
Date: |
Fri, 23 Sep 2011 12:46:10 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Another simple doc tweak:
2011-09-23 Bruno Haible <address@hidden>
mkdir: Tweak for MSVC 9.
* lib/sys_stat.in.h: Update comments.
* doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
--- doc/posix-functions/mkdir.texi.orig Fri Sep 23 12:45:35 2011
+++ doc/posix-functions/mkdir.texi Fri Sep 23 12:03:02 2011
@@ -9,6 +9,10 @@
Portability problems fixed by Gnulib:
@itemize
@item
+This function is declared in different header files (namely, @code{<io.h>} or
address@hidden<direct.h>}) on some platforms:
+mingw, MSVC 9.
address@hidden
When the argument ends in a slash, the function call fails on some platforms.
@item
This function mistakenly succeeds on @samp{mkdir("d/./",mode)} on
--- lib/sys_stat.in.h.orig Fri Sep 23 12:45:35 2011
+++ lib/sys_stat.in.h Fri Sep 23 12:41:33 2011
@@ -55,10 +55,11 @@
/* The definition of _GL_WARN_ON_USE is copied here. */
/* Before doing "#define mkdir rpl_mkdir" below, we need to include all
- headers that may declare mkdir(). */
+ headers that may declare mkdir(). Native Windows platforms declare mkdir
+ in <io.h> and/or <direct.h>, not in <unistd.h>. */
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# include <io.h> /* mingw32, mingw64 */
-# include <direct.h> /* mingw64 */
+# include <direct.h> /* mingw64, MSVC 9 */
#endif
#ifndef S_IFIFO
--
In memoriam Ghazala Khan <http://en.wikipedia.org/wiki/Ghazala_Khan>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mkdir on MSVC,
Bruno Haible <=