*wprintf() functions should be extern, not static, when we define them in wxNEED_WPRINTF case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-21 23:50:36 +00:00
parent 92ab7bed77
commit fd67d2658b

View File

@@ -240,14 +240,14 @@ int /* not wint_t */ wxCRT_FputcW(wchar_t wc, FILE *stream)
#ifdef wxNEED_WPRINTF #ifdef wxNEED_WPRINTF
// TODO: implement the scanf() functions // TODO: implement the scanf() functions
static int vwscanf(const wchar_t *format, va_list argptr) int vwscanf(const wchar_t *format, va_list argptr)
{ {
wxFAIL_MSG( _T("TODO") ); wxFAIL_MSG( _T("TODO") );
return -1; return -1;
} }
static int vswscanf(const wchar_t *ws, const wchar_t *format, va_list argptr) int vswscanf(const wchar_t *ws, const wchar_t *format, va_list argptr)
{ {
// The best we can do without proper Unicode support in glibc is to // The best we can do without proper Unicode support in glibc is to
// convert the strings into MB representation and run ANSI version // convert the strings into MB representation and run ANSI version
@@ -262,7 +262,7 @@ static int vswscanf(const wchar_t *ws, const wchar_t *format, va_list argptr)
return vsscanf(wxConvLibc.cWX2MB(ws), wxConvLibc.cWX2MB(format), argptr); return vsscanf(wxConvLibc.cWX2MB(ws), wxConvLibc.cWX2MB(format), argptr);
} }
static int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr) int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr)
{ {
wxFAIL_MSG( _T("TODO") ); wxFAIL_MSG( _T("TODO") );
@@ -271,7 +271,7 @@ static int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr)
#define vswprintf wxCRT_VsnprintfW #define vswprintf wxCRT_VsnprintfW
static int vfwprintf(FILE *stream, const wchar_t *format, va_list argptr) int vfwprintf(FILE *stream, const wchar_t *format, va_list argptr)
{ {
wxString s; wxString s;
int rc = s.PrintfV(format, argptr); int rc = s.PrintfV(format, argptr);
@@ -286,7 +286,7 @@ static int vfwprintf(FILE *stream, const wchar_t *format, va_list argptr)
return rc; return rc;
} }
static int vwprintf(const wchar_t *format, va_list argptr) int vwprintf(const wchar_t *format, va_list argptr)
{ {
return wxCRT_VfprintfW(stdout, format, argptr); return wxCRT_VfprintfW(stdout, format, argptr);
} }