X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e10778e0e79ad94ac74da5fd1bb087336be4321..15811f2f674720ba7da5353066ef71cd5621c081:/src/common/dcsvg.cpp

diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp
index ab2302cf7f..9a94179c2d 100644
--- a/src/common/dcsvg.cpp
+++ b/src/common/dcsvg.cpp
@@ -15,8 +15,13 @@
 #pragma hdrstop
 #endif
 
+#if wxUSE_SVG
+
 #ifndef WX_PRECOMP
-#include "wx/image.h"
+    #include "wx/dcmemory.h"
+    #include "wx/dcscreen.h"
+    #include "wx/icon.h"
+    #include "wx/image.h"
 #endif
 
 #include "wx/dcsvg.h"
@@ -712,3 +717,5 @@ void wxSVGFileDC::SetDeviceOrigin(wxCoord x, wxCoord y)
 #pragma warn .ccc
 #endif
 
+#endif // wxUSE_SVG
+