From 80f8355d6639f1bb13b00a64cb27aaa2b5088185 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Jun 2007 14:48:28 +0000 Subject: [PATCH] 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 --- src/common/wxcrt.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index a967694a34..be2c04dfef 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -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 static size_t PrintfViaString(T *out, size_t outsize, const wxString& format, va_list argptr) -- 2.45.2