better Sun CC fix: put the function in anonymous namespace instead of making it global

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-06-22 14:48:28 +00:00
parent 2dab040a1d
commit 80f8355d66

View File

@@ -548,6 +548,9 @@ int wxDoSnprintfUtf8(wchar_t *str, size_t size, const char *format, ...)
#if wxUSE_UNICODE
namespace
{
#if !wxUSE_UTF8_LOCALE_ONLY
int wxInternalConvertStringToBuf(const wxString& s, char *out, size_t outsize)
{
@@ -573,6 +576,8 @@ int wxInternalConvertStringToBuf(const wxString& s, wchar_t *out, size_t outsize
}
#endif // wxUSE_UNICODE_UTF8
} // anonymous namespace
template<typename T>
static size_t PrintfViaString(T *out, size_t outsize,
const wxString& format, va_list argptr)