X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5437b854cece72d2ee069a7cd8b5776acc1b4ff..7ef2db2570c8abd3b472ac91df5035534948c09f:/src/unix/stdpaths.cpp diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index fbecba3600..fc50fe8ae5 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -38,6 +38,10 @@ #include #endif +#if defined(__WXMAC__) + #include "wx/mac/private.h" +#endif + // ============================================================================ // wxStandardPaths implementation // ============================================================================ @@ -129,6 +133,8 @@ wxString wxStandardPaths::GetUserDataDir() const { #ifdef __VMS return wxFileName::GetHomeDir(); +#elif defined(__WXMAC__) + return AppendAppName(wxMacFindFolder((short) kUserDomain, kApplicationSupportFolderType, kDontCreateFolder)); #else return AppendAppName(wxFileName::GetHomeDir() + _T("/.")); #endif