X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6c7a0f826d5e156c177b4755365c3eb33e9b933..7b28e0ede49ca78e05df6bc6af2d2d8c508f8455:/src/common/wxchar.cpp diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 6d682be476..edbe661e75 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -599,13 +599,7 @@ int vfwprintf(FILE *stream, const wxChar *format, va_list argptr) if ( rc != -1 ) { // we can't do much better without Unicode support in libc... - if ( fprintf(stream, "%s", -#if wxUSE_UNICODE - s.mb_str().data() -#else - s.c_str() -#endif - ) == -1 ) + if ( fprintf(stream, "%s", (const char*)s.mb_str() ) == -1 ) return -1; }