From 5d2c2b27a6323e2666378b986129b2a7c2c39e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Feb 2022 16:04:24 +0100 Subject: New upstream version 5.2.2GA --- app/bin/directory.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'app/bin/directory.c') diff --git a/app/bin/directory.c b/app/bin/directory.c index 265485b..991e139 100644 --- a/app/bin/directory.c +++ b/app/bin/directory.c @@ -20,27 +20,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include -#include - -#ifdef WINDOWS - #include "include/dirent.h" - #include - #define unlink(a) _unlink((a)) - #define rmdir(a) _rmdir((a)) -#else - #include - #include - #include - #include -#endif - -#include #include "directory.h" #include "dynstring.h" -#include "i18n.h" -#include "messages.h" #include "misc.h" +#include "common-ui.h" /***************************************************************************** * Safe Create Dir @@ -54,11 +37,7 @@ BOOL_T SafeCreateDir(const char *dir) { int err; -#ifdef WINDOWS - err = _mkdir(dir); -#else err = mkdir(dir, 0755); -#endif if (err < 0) { if (errno != EEXIST) { NoticeMessage(MSG_DIR_CREATE_FAIL, -- cgit v1.2.3