MinGW compilation fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2004-01-17 22:21:48 +00:00
parent 25e4b4bfde
commit a6c7a0f826
3 changed files with 9 additions and 2 deletions

View File

@@ -599,7 +599,13 @@ 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", s.mb_str()) == -1 )
if ( fprintf(stream, "%s",
#if wxUSE_UNICODE
s.mb_str().data()
#else
s.c_str()
#endif
) == -1 )
return -1;
}

View File

@@ -281,7 +281,7 @@ int wxEventLoop::Run()
// wxModalEventLoop depends on this (so we can't just use ON_BLOCK_EXIT or
// something similar here)
#if wxUSE_EXCEPTIONS
bool retryAfterException;
bool retryAfterException = false;
do {
retryAfterException=false;
#endif

View File

@@ -44,6 +44,7 @@
#include "wx/volume.h"
#include <shellapi.h>
#include <shlobj.h>
#include "wx/msw/missing.h"
#if wxUSE_BASE