wxWidgets/msw: Kill off some warnings introduced when I excluded some unused packages from the wx lib.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3137 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-06-01 03:34:51 +00:00
parent 23857a0e16
commit 0d732a8c62
2 changed files with 12 additions and 8 deletions

View File

@ -167,18 +167,21 @@ wxImage::wxImage(const char* const* xpmData)
Create(xpmData); Create(xpmData);
} }
#if wxUSE_XPM
bool wxImage::Create(const char* const* xpmData) bool wxImage::Create(const char* const* xpmData)
{ {
#if wxUSE_XPM
UnRef(); UnRef();
wxXPMDecoder decoder; wxXPMDecoder decoder;
(*this) = decoder.ReadData(xpmData); (*this) = decoder.ReadData(xpmData);
return Ok(); return Ok();
#else
return false;
#endif
} }
#else
bool wxImage::Create( const char* const* WXUNUSED(xpmData) )
{
return false;
}
#endif
bool wxImage::Create( int width, int height, bool clear ) bool wxImage::Create( int width, int height, bool clear )
{ {

View File

@ -211,19 +211,20 @@ int wxEntry(int& argc, wxChar **argv)
wxSEH_HANDLE(-1) wxSEH_HANDLE(-1)
} }
#else // !wxUSE_ON_FATAL_EXCEPTION // PCSX2: Moved this to inside the wxUSE_ON_FATAL_EXCEPTION condition --air
#if defined(__VISUALC__) && !defined(__WXWINCE__) #if defined(__VISUALC__) && !defined(__WXWINCE__)
static void static void
wxSETranslator(unsigned int WXUNUSED(code), EXCEPTION_POINTERS * WXUNUSED(ep)) wxSETranslator(unsigned int WXUNUSED(code), EXCEPTION_POINTERS * WXUNUSED(ep))
{ {
// see wxSETranslator() version for wxUSE_ON_FATAL_EXCEPTION above // see wxSETranslator() version for wxUSE_ON_FATAL_EXCEPTION above
throw; throw;
} }
#endif // __VISUALC__ #endif // __VISUALC__
#else // !wxUSE_ON_FATAL_EXCEPTION
int wxEntry(int& argc, wxChar **argv) int wxEntry(int& argc, wxChar **argv)
{ {
DisableAutomaticSETranslator(); DisableAutomaticSETranslator();