diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-23 12:46:14 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-23 12:46:14 +0200 |
commit | c31e51d43f77f247cc3e200e3255f745398eee10 (patch) | |
tree | 19d5208b66d6777ab0eec59248a2710bdc8b8ea8 /lib/sys_stat.in.h | |
parent | 9c034054fc9c5c8f261741c98368b020ed7c4ff0 (diff) | |
download | gnulib-c31e51d43f77f247cc3e200e3255f745398eee10.tar.gz |
mkdir: Tweak for MSVC 9.
* lib/sys_stat.in.h: Update comments.
* doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
Diffstat (limited to 'lib/sys_stat.in.h')
-rw-r--r-- | lib/sys_stat.in.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index bc39a1727d..cc59c75ea1 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -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 |