]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/core/stdpaths.h
Use /bin/echo for creation of Mac OS X PkgInfo files.
[wxWidgets.git] / include / wx / osx / core / stdpaths.h
index 3fcb8d5676beca3ffefe77773e93d225a857d867..4c48407f7befb7b88ce157625542a30809951a5b 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        wx/mac/corefoundation/stdpaths.h
+// Name:        wx/osx/core/stdpaths.h
 // Purpose:     wxStandardPaths for CoreFoundation systems
 // Author:      David Elliott
 // Modified by:
@@ -18,11 +18,21 @@ struct __CFURL;
 typedef const __CFURL * wxCFURLRef;
 typedef __CFBundle * wxCFBundleRef;
 
+// we inherit the GUI CF-based wxStandardPaths implementation from the Unix one
+// used for console programs if possible (i.e. if we're under a Unix system at
+// all)
+#if defined(__UNIX__)
+    #include "wx/unix/stdpaths.h"
+    #define wxStandardPathsCFBase wxStandardPaths
+#else
+    #define wxStandardPathsCFBase wxStandardPathsBase
+#endif
+
 // ----------------------------------------------------------------------------
 // wxStandardPaths
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsBase
+class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsCFBase
 {
 public:
     wxStandardPathsCF();
@@ -54,14 +64,4 @@ protected:
     wxCFBundleRef m_bundle;
 };
 
-// If using UNIX (i.e. darwin) then use UNIX standard paths
-#if defined(__UNIX__)
-#include "wx/unix/stdpaths.h"
-#else
-// If compiling wxMac for CarbonLib then we are wxStandardPaths
-class WXDLLIMPEXP_BASE wxStandardPaths: public wxStandardPathsCF
-{
-};
-#endif
-
 #endif // _WX_MAC_STDPATHS_H_