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;
}