diff --git a/src/common/image.cpp b/src/common/image.cpp index 73f00d9f88..d450769808 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1203,7 +1203,10 @@ wxImageHandler *wxImage::FindHandlerMime( const wxString& mimetype ) void wxImage::InitStandardHandlers() { +#if wxUSE_STREAMS AddHandler(new wxBMPHandler); +#endif // wxUSE_STREAMS + #if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__) AddHandler(new wxXPMHandler); #endif