X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e51b17a1f9de88035fa051fbac8b074f507e775d..052da7d572c75d05207b53f515ed6623285dc841:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index db9a54b8b3..bd343a081d 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -80,16 +80,8 @@ class WXDLLIMPEXP_BASE wxString; // constants // ---------------------------------------------------------------------------- -#if defined(__VISAGECPP__) && __IBMCPP__ >= 400 -// must define this static for VA or else you get multiply defined symbols everywhere -extern const unsigned int wxSTRING_MAXLEN; - -#else // maximum possible length for a string means "take all string" everywhere -// (as sizeof(StringData) is unknown here, we subtract 100) -const unsigned int wxSTRING_MAXLEN = UINT_MAX - 100; - -#endif +#define wxSTRING_MAXLEN wxStringBase::npos // ---------------------------------------------------------------------------- // global data @@ -830,8 +822,11 @@ public: #if wxUSE_WCHAR_T const wxWCharBuffer wc_str(wxMBConv& conv) const; #endif // wxUSE_WCHAR_T - +#ifdef __WXOSX__ + const wxCharBuffer fn_str() const { return wxConvFile.cWC2WX( wc_str( wxConvLocal ) ); } +#else const wxChar* fn_str() const { return c_str(); } +#endif #endif // Unicode/ANSI // overloaded assignment