]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/quantize.cpp
use correct fallback file name in SaveFile() (patch 820884)
[wxWidgets.git] / src / common / quantize.cpp
index d3d894f41a5cc16b03c367ce663d836892e65b8b..736619734c3a67de5df83ab9619f6020e165af53 100644 (file)
@@ -30,7 +30,7 @@
 
 /* modified by Vaclav Slavik for use as jpeglib-independent module */
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "quantize.h"
 #endif
 
     #include "wx/palette.h"
 #endif
 
+#if wxUSE_IMAGE
+
 #include "wx/image.h"
 #include "wx/quantize.h"
 
 #ifdef __WXMSW__
-#include <windows.h>
+#include "wx/msw/private.h"
 #endif
 
 #include <stdlib.h>
@@ -1655,3 +1657,6 @@ bool wxQuantize::Quantize(const wxImage& src,
     return TRUE;
 }
 
+#endif
+    // wxUSE_IMAGE
+