wxPuts() should output a trailing newline even in Unix/Unicode builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-10-11 23:49:15 +00:00
parent 8d6f95db28
commit 19b65a3033
3 changed files with 27 additions and 2 deletions

View File

@@ -613,6 +613,22 @@ int wxFputs(const wchar_t *ws, FILE *stream)
}
#endif // wxNEED_FPUTS
#ifdef wxNEED_PUTS
int wxPuts(const wxChar *ws)
{
int rc = wxFputs(ws, stdout);
if ( rc != -1 )
{
if ( wxFputs(L"\n", stdout) == -1 )
return -1;
rc++;
}
return rc;
}
#endif // wxNEED_PUTS
#ifdef wxNEED_PUTC
int /* not wint_t */ wxPutc(wchar_t wc, FILE *stream)
{