///////////////////////////////////////////////////////////////////////////////
-// Name: wx/mac/corefoundation/stdpaths.h
+// Name: wx/osx/core/stdpaths.h
// Purpose: wxStandardPaths for CoreFoundation systems
// Author: David Elliott
// Modified by:
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();
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_