]> git.saurik.com Git - wxWidgets.git/commitdiff
added #ifdef wxUSE_XPM around XPM handler initialization
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jul 2001 15:08:46 +0000 (15:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jul 2001 15:08:46 +0000 (15:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index a9b0a152e4049bfbcf9d8d26513f4bae31074ffa..5086141878f886a24d990458bd6db1dea9b28239 100644 (file)
@@ -1040,7 +1040,7 @@ wxImageHandler *wxImage::FindHandlerMime( const wxString& mimetype )
 void wxImage::InitStandardHandlers()
 {
     AddHandler(new wxBMPHandler);
-#if !defined(__WXGTK__) && !defined(__WXMOTIF__)
+#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__)
     AddHandler(new wxXPMHandler);
 #endif
 }