]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/stdpaths_cf.cpp
Minor header cleaning.
[wxWidgets.git] / src / mac / corefoundation / stdpaths_cf.cpp
index 2b2cf9cba0061427f41435224d0a63663e71d045..451acd14dfc235de373c50c145356572d1d7cf28 100644 (file)
@@ -31,7 +31,6 @@
 #include "wx/mac/private.h"
 #endif
 #include "wx/mac/corefoundation/cfstring.h"
 #include "wx/mac/private.h"
 #endif
 #include "wx/mac/corefoundation/cfstring.h"
-#include "wx/mac/private.h"
 
 #if defined(__DARWIN__)
 #include <CoreFoundation/CFBundle.h>
 
 #if defined(__DARWIN__)
 #include <CoreFoundation/CFBundle.h>
@@ -109,6 +108,7 @@ wxString wxStandardPathsCF::GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const
 
 wxString wxStandardPathsCF::GetDocumentsDir() const
 {
 
 wxString wxStandardPathsCF::GetDocumentsDir() const
 {
+#ifdef __WXMAC__
     return wxMacFindFolderNoSeparator
         (
 #if TARGET_API_MAC_OSX
     return wxMacFindFolderNoSeparator
         (
 #if TARGET_API_MAC_OSX
@@ -119,6 +119,9 @@ wxString wxStandardPathsCF::GetDocumentsDir() const
         kDocumentsFolderType,
         kCreateFolder
         );
         kDocumentsFolderType,
         kCreateFolder
         );
+#else
+    return wxFileName::GetHomeDir() + wxT("/Documents");
+#endif
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------