X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed39ff57b30a70a2395e07887a70bc01e7a3b7ec..64dcc269136ad1ad47c6df4d707c9a42961c5694:/src/common/quantize.cpp diff --git a/src/common/quantize.cpp b/src/common/quantize.cpp index d3d894f41a..736619734c 100644 --- a/src/common/quantize.cpp +++ b/src/common/quantize.cpp @@ -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 @@ -45,11 +45,13 @@ #include "wx/palette.h" #endif +#if wxUSE_IMAGE + #include "wx/image.h" #include "wx/quantize.h" #ifdef __WXMSW__ -#include +#include "wx/msw/private.h" #endif #include @@ -1655,3 +1657,6 @@ bool wxQuantize::Quantize(const wxImage& src, return TRUE; } +#endif + // wxUSE_IMAGE +