Document the cfstring.h/cfstring.cpp as being used by all Darwin ports (it's

now part of the common base library).
Use the CFLocale-based code on all Darwin systems instead of testing
__WXOSX__ in base-library code which is NEVER appropriate.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-11-19 19:23:29 +00:00
parent b95d7ac96c
commit afc605b2be
3 changed files with 5 additions and 3 deletions

View File

@@ -76,7 +76,7 @@
#include "wx/mac/private.h" // includes mac headers
#endif
#if defined(__WXOSX__)
#if defined(__DARWIN__)
#include "wx/mac/corefoundation/cfref.h"
#include <CoreFoundation/CFLocale.h>
#include "wx/mac/corefoundation/cfstring.h"
@@ -2902,7 +2902,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
return str;
}
#elif defined(__WXOSX__)
#elif defined(__DARWIN__)
/* static */
wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
@@ -2928,7 +2928,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
return str.AsString();
}
#else // !__WXMSW__ && !__WXMAC__
#else // !__WXMSW__ && !__DARWIN__
/* static */
wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)