X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8f9fe13aa1ba4ba9e090a79420af5f4889b2365..032e024c1c6ab6a20226604baab9d00558620e72:/src/generic/graphicc.cpp diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index c6ffbd51d0..0cc09b6751 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -15,10 +15,13 @@ #pragma hdrstop #endif -#include "wx/cairo.h" +#if wxUSE_GRAPHICS_CONTEXT + #include "wx/graphics.h" -#if wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO +#if wxUSE_CAIRO + +#include "wx/cairo.h" #ifndef WX_PRECOMP #include "wx/bitmap.h" @@ -1949,9 +1952,8 @@ wxCairoRenderer::CreateSubBitmap(const wxGraphicsBitmap& WXUNUSED(bitmap), return wxNullGraphicsBitmap; } -#endif // wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO +#endif // wxUSE_CAIRO -#if wxUSE_GRAPHICS_CONTEXT wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer() { #if wxUSE_CAIRO @@ -1960,4 +1962,5 @@ wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer() return NULL; #endif } -#endif + +#endif // wxUSE_GRAPHICS_CONTEXT