#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"
wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeContext( void * context )
{
-#if __WXMSW__
+#ifdef __WXMSW__
return new wxCairoContext(this,(HDC)context);
#endif
-#if __WXGTK__
+#ifdef __WXGTK__
return new wxCairoContext(this,(cairo_t*)context);
#endif
}
return wxNullGraphicsBitmap;
}
-#endif // wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO
+#endif // wxUSE_CAIRO
-#if wxUSE_GRAPHICS_CONTEXT
wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer()
{
#if wxUSE_CAIRO
return NULL;
#endif
}
-#endif
+
+#endif // wxUSE_GRAPHICS_CONTEXT