diff --git a/samples/widgets/textctrl.cpp b/samples/widgets/textctrl.cpp index e9282d977f..02c94cdc0c 100644 --- a/samples/widgets/textctrl.cpp +++ b/samples/widgets/textctrl.cpp @@ -891,7 +891,7 @@ void TextWidgetsPage::OnStreamRedirector(wxCommandEvent& WXUNUSED(event)) #if wxHAS_TEXT_WINDOW_STREAM wxStreamToTextRedirector redirect(m_text); wxString str( _T("Outputed to cout, appears in wxTextCtrl!") ); - cout << str << endl; + wxSTD cout << str << wxSTD endl; #else wxMessageBox(_T("This wxWidgets build does not support wxStreamToTextRedirector")); #endif