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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user