]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagall.cpp
wxDbGrid additions contributed by Paul and Roger Gammans with additions/corrections...
[wxWidgets.git] / src / common / imagall.cpp
index ec8bf996c1e76dec1498c50a4f678cc6c8588dbb..454993388a5f10d3b6ff4ecc239b5cf77463ef40 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "wx/image.h"
 
+#if wxUSE_IMAGE
+
 //-----------------------------------------------------------------------------
 // This function allows dynamic access to all image handlers compile within
 // the library. This function should be in a separate file as some compilers
@@ -50,4 +52,9 @@ void wxInitAllImageHandlers()
 #if wxUSE_PCX
   wxImage::AddHandler( new wxPCXHandler );
 #endif
+#if wxUSE_XPM
+  wxImage::AddHandler( new wxXPMHandler );
+#endif
 }
+
+#endif // wxUSE_IMAGE