From: Robin Dunn Date: Tue, 3 Oct 2006 21:56:07 +0000 (+0000) Subject: Wrap module in #if wxUSE_GRAPHICS_CONTEXT X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7ba86d938d4b6315997a96b429d0343a9bcb4781?hp=38af4365b3d087abd53744620a9f39fdf6dc15dd Wrap module in #if wxUSE_GRAPHICS_CONTEXT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index d901678cd5..d5da4a5a7b 100755 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -37,6 +37,8 @@ #include "wx/graphics.h" +#if wxUSE_GRAPHICS_CONTEXT + #include using namespace std; @@ -865,4 +867,6 @@ void wxCairoContext::SetFont( const wxFont &font ) wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc ) { return new wxCairoContext(dc); -} \ No newline at end of file +} + +#endif // wxUSE_GRAPHICS_CONTEXT diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index e3a43c31d7..de74aa9ce9 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -38,6 +38,8 @@ #include "wx/graphics.h" +#if wxUSE_GRAPHICS_CONTEXT + #include using namespace std; @@ -945,3 +947,6 @@ wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc) { return new wxGDIPlusContext( (HDC) dc.GetHDC() ); } + + +#endif // wxUSE_GRAPHICS_CONTEXT