git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18103
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxImage::AddHandler( new wxCURHandler );
wxImage::AddHandler( new wxANIHandler );
#endif
+#if wxUSE_XPM && (defined(__WXGTK__) || defined(__WXMOTIF__))
+ // NB: keep this #ifdef in sync with the one in image.cpp
+ // (wxImage::InitStandardHandlers) - they must complement each other
+ // so that there's always exactly one XPM handler added after calling
+ // wxInitAllImageHandlers()
+ wxImage::AddHandler( new wxXPMHandler );
+#endif
}
#endif // wxUSE_IMAGE
#endif // wxUSE_STREAMS
#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__)
+ // NB: keep this #ifdef in sync with the one in imagall.cpp -
+ // they must complement each other so that there's always exactly
+ // one XPM handler added after calling wxInitAllImageHandlers()
AddHandler(new wxXPMHandler);
#endif
}