#define wxNEED_UNGETC
#define wxNEED_FPUTS
+ #define wxNEED_PUTS
#define wxNEED_PUTC
int wxFputs(const wxChar *ch, FILE *stream);
+ int wxPuts(const wxChar *ws);
int wxPutc(wxChar ch, FILE *stream);
#ifdef __cplusplus
#endif
#define wxPutchar(wch) wxPutc(wch, stdout)
- #define wxPuts(ws) wxFputs(ws, stdout)
#define wxNEED_PRINTF_CONVERSION
#define wxNEED_WX_STDIO_H
#ifdef HAVE_PUTWS
#define wxPuts putws
#else
- #define wxPuts(ws) wxFputs(ws, stdout)
+ #define wxNEED_PUTS
+ int wxPuts(const wxChar *ws)
#endif
/* we need %s to %ls conversion for printf and scanf etc */
}
#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)
{