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
This commit is contained in:
parent
ae8db4dc3a
commit
511327386b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user