]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/artprov.cpp
don't define functions unused under CE when compiling for it (avoids warnings)
[wxWidgets.git] / src / common / artprov.cpp
index 1dda57dd33db0098efb53aa971ce3f676fdd6f64..a14428f89e8fcb97043d1b1985614deee1a8b882 100644 (file)
@@ -13,7 +13,7 @@
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "artprov.h"
 #endif
 
@@ -32,7 +32,9 @@
 #include "wx/artprov.h"
 #include "wx/hashmap.h"
 #include "wx/module.h"
+#if wxUSE_IMAGE
 #include "wx/image.h"
+#endif
 
 // For the purposes of forcing this module to link
 extern char g_ArtProviderModule;
@@ -173,6 +175,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
             bmp = node->GetData()->CreateBitmap(id, client, size);
             if ( bmp.Ok() )
             {
+#if wxUSE_IMAGE
                 if ( size != wxDefaultSize &&
                      (bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) )
                 {
@@ -180,6 +183,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
                     img.Rescale(size.x, size.y);
                     bmp = wxBitmap(img);
                 }
+#endif                
                 break;
             }
         }