From dad49cc7f9d41e241c647bf7bae0ba7d18fc972a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Oct 2007 23:50:32 +0000 Subject: [PATCH] compilation fix for wxUSE_STL==1 build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cppunit.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index fc9d5cf084..54db82a366 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -95,7 +95,11 @@ inline std::ostream& operator<<(std::ostream& o, const wxString& s) { - return o << (const char *)wxSafeConvertWX2MB(s); +#if wxUSE_UNICODE + return o << (const char *)wxSafeConvertWX2MB(s.wc_str()); +#else + return o << s.c_str(); +#endif } -- 2.45.2