diff --git a/common/src/Utilities/PathUtils.cpp b/common/src/Utilities/PathUtils.cpp index c0c4778902..132717cc5a 100644 --- a/common/src/Utilities/PathUtils.cpp +++ b/common/src/Utilities/PathUtils.cpp @@ -82,8 +82,13 @@ bool wxDirName::Mkdir() { // wxWidgets recurses directory creation for us. + // only exist in wx2.9 and above +#ifndef wxS_DIR_DEFAULT +#define wxS_DIR_DEFAULT 0777 +#endif + if( Exists() ) return true; - return wxFileName::Mkdir(); + return wxFileName::Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL); }