diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
commit | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch) | |
tree | ce8982b6c0111f79791068de2c2d4c6ce3138a49 /app/bin/directory.c | |
parent | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff) |
New upstream version 5.2.2GAupstream/5.2.2GA
Diffstat (limited to 'app/bin/directory.c')
-rw-r--r-- | app/bin/directory.c | 23 |
1 files changed, 1 insertions, 22 deletions
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 <errno.h> -#include <string.h> - -#ifdef WINDOWS - #include "include/dirent.h" - #include <direct.h> - #define unlink(a) _unlink((a)) - #define rmdir(a) _rmdir((a)) -#else - #include <dirent.h> - #include <unistd.h> - #include <sys/stat.h> - #include <sys/types.h> -#endif - -#include <wlib.h> #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, |