summaryrefslogtreecommitdiff
path: root/lib-src/ntlib.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-08-12 11:29:37 +0300
committerEli Zaretskii <eliz@gnu.org>2017-08-12 11:29:37 +0300
commit8cc8ad02bd5c410c61680735149ce7caf67f088d (patch)
treef99ec13f9647acb1bdc89a2691943fa1802b9d33 /lib-src/ntlib.h
parent84288cf4211a4490c0155d3c0022617b92294f49 (diff)
downloademacs-8cc8ad02bd5c410c61680735149ce7caf67f088d.tar.gz
Use Gnulib 'tempname' on MS-Windows
* lib-src/ntlib.h (mkdir, open): Remove redefinitions. They are now in nt/inc/ms-w32.h. * lib-src/ntlib.c (sys_mkdir, sys_open): New functions. (mkostemp): Remove. * src/w32.c (mkostemp): Remove. (sys_mkdir): Accept a second (unused) argument. * src/fileio.c (Fmake_directory_internal): Remove the WINDOWSNT specific call to mkdir. (Bug#28023) * nt/inc/ms-w32.h (mkdir): Remove from "#ifdef emacs" and redefine to accept 2 arguments. (open): Remove from "#ifdef emacs". * nt/mingw-cfg.site (ac_cv_func_mkostemp): Remove. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_mkostemp) (OMIT_GNULIB_MODULE_tempname): Remove.
Diffstat (limited to 'lib-src/ntlib.h')
-rw-r--r--lib-src/ntlib.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index 32189dcc7a0..b69a40b4f03 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -58,10 +58,6 @@ int fchown (int fd, unsigned uid, unsigned gid);
#undef dup2
#define dup2 _dup2
#undef fopen
-#undef mkdir
-#define mkdir _mkdir
-#undef open
-#define open _open
#undef pipe
#define pipe _pipe
#undef read