check for wputc wputchar putws fputws availability

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-20 17:18:50 +00:00
parent 290e4c83d9
commit fbe47c7b5c
6 changed files with 52 additions and 20 deletions

View File

@@ -415,22 +415,33 @@
#define wxGets getws
#define wxUngetc ungetwc
#ifdef HAVE_FPUTWC
#define wxPutc wputc
#define wxPutchar wputchar
#define wxPuts putws
#define wxFputs fputws
#ifdef HAVE_FPUTWS
#define wxFputs fputws
#else
#define wxNEED_FPUTWC
#define wxNEED_FPUTS
#include <stdio.h>
int wxFputs(const wxChar *ch, FILE *stream);
int wxPutc(wxChar ch, FILE *stream);
#endif
#define wxPuts(ws) wxFputs(ws, stdout)
#ifdef HAVE_WPUTC
#define wxPutc wputc
#else
#define wxNEED_PUTC
#include <stdio.h>
int wxPutc(wxChar ch, FILE *stream);
#endif
#ifdef HAVE_WPUTCHAR
#define wxPutchar wputchar
#else
#define wxPutchar(wch) wxPutc(wch, stdout)
#endif
#ifdef HAVE_PUTWS
#define wxPuts putws
#else
#define wxPuts(ws) wxFputs(ws, stdout)
#endif
/* we need %s to %ls conversion for printf and scanf etc */
#define wxNEED_PRINTF_CONVERSION