X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17af82fb4c8f830f202567259472645c27724c32..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/mac/corefoundation/stdpaths_cf.cpp?ds=sidebyside diff --git a/src/mac/corefoundation/stdpaths_cf.cpp b/src/mac/corefoundation/stdpaths_cf.cpp index 2b2cf9cba0..451acd14df 100644 --- a/src/mac/corefoundation/stdpaths_cf.cpp +++ b/src/mac/corefoundation/stdpaths_cf.cpp @@ -31,7 +31,6 @@ #include "wx/mac/private.h" #endif #include "wx/mac/corefoundation/cfstring.h" -#include "wx/mac/private.h" #if defined(__DARWIN__) #include @@ -109,6 +108,7 @@ wxString wxStandardPathsCF::GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const wxString wxStandardPathsCF::GetDocumentsDir() const { +#ifdef __WXMAC__ return wxMacFindFolderNoSeparator ( #if TARGET_API_MAC_OSX @@ -119,6 +119,9 @@ wxString wxStandardPathsCF::GetDocumentsDir() const kDocumentsFolderType, kCreateFolder ); +#else + return wxFileName::GetHomeDir() + wxT("/Documents"); +#endif } // ----------------------------------------------------------------------------