From 7ba86d938d4b6315997a96b429d0343a9bcb4781 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 3 Oct 2006 21:56:07 +0000 Subject: [PATCH] Wrap module in #if wxUSE_GRAPHICS_CONTEXT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/graphicc.cpp | 6 +++++- src/msw/graphics.cpp | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 -- 2.45.2