From 511327386bec5645785dabd22dfda448e17b5363 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 2 Apr 1999 16:25:46 +0000 Subject: [PATCH] Switched wxMkdir code back to old working version. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 21e33dc94b..14292771e1 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -982,6 +982,7 @@ bool wxRemoveFile(const wxString& file) bool wxMkdir(const wxString& dir, int perm) { +/* #if defined( __WXMAC__ ) strcpy( gwxMacFileName , dir ) ; wxUnix2MacFilename( gwxMacFileName ) ; @@ -998,6 +999,22 @@ bool wxMkdir(const wxString& dir, int perm) } return TRUE; +*/ + +#if defined(__WXSTUBS__) + return FALSE; +#elif defined(__VMS__) + return FALSE; +#elif defined( __WXMAC__ ) + strcpy( gwxMacFileName , dir ) ; + wxUnix2MacFilename( gwxMacFileName ) ; + return (mkdir(gwxMacFileName , 0 ) == 0); +#elif (defined(__GNUWIN32__) && !defined(__MINGW32__)) || !defined(__WXMSW__) + return (mkdir (WXSTRINGCAST dir, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == 0); +#else + return (mkdir(WXSTRINGCAST dir) == 0); +#endif + } bool wxRmdir(const wxString& dir, int WXUNUSED(flags)) -- 2.45.2