X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/819451b6c76bdcaf5fd8865479209859511aa986..d3d0974f0f4ea623b5255db0b70b5e8374bf9d3f:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index c192366f29..41b273e76c 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "rgncmn.h" #endif @@ -23,7 +23,9 @@ #include "wx/region.h" #include "wx/bitmap.h" +#if wxUSE_IMAGE #include "wx/image.h" +#endif #include "wx/dcmemory.h" @@ -52,6 +54,7 @@ bool wxRegion::Union(const wxBitmap& bmp, const wxColour& transColour, int tolerance) { +#if wxUSE_IMAGE unsigned char loR, loG, loB; unsigned char hiR, hiG, hiB; @@ -114,6 +117,10 @@ bool wxRegion::Union(const wxBitmap& bmp, } return TRUE; +#else + // No wxImage support + return FALSE; +#endif } //---------------------------------------------------------------------------