(blind) fix for BC++ compilation problem with wxPutc() redefinition

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-08-27 08:56:50 +00:00
parent 9c6b482464
commit d4ea46dbad
2 changed files with 4 additions and 2 deletions

View File

@@ -396,6 +396,8 @@
#define wxPuts putws #define wxPuts putws
#define wxFputs fputws #define wxFputs fputws
#else #else
#define wxNEED_FPUTWC
#include <stdio.h> #include <stdio.h>
int wxFputs(const wxChar *ch, FILE *stream); int wxFputs(const wxChar *ch, FILE *stream);

View File

@@ -451,7 +451,7 @@ int WXDLLEXPORT wxSnprintf_(wxChar *buf, size_t len, const wxChar *format, ...)
// implement the standard IO functions for wide char if libc doesn't have them // implement the standard IO functions for wide char if libc doesn't have them
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifndef HAVE_FPUTWC #ifdef wxNEED_FPUTWC
int wxFputs(const wchar_t *ws, FILE *stream) int wxFputs(const wchar_t *ws, FILE *stream)
{ {
@@ -467,7 +467,7 @@ int /* not wint_t */ wxPutc(wchar_t wc, FILE *stream)
return wxFputs(ws, stream); return wxFputs(ws, stream);
} }
#endif // HAVE_FPUTWC #endif // wxNEED_FPUTWC
// NB: we only implement va_list functions here, the ones taking ... are // NB: we only implement va_list functions here, the ones taking ... are
// defined below for wxNEED_PRINTF_CONVERSION case anyhow and we reuse // defined below for wxNEED_PRINTF_CONVERSION case anyhow and we reuse