From ed1b38a88e0b9a6288832eeabf17626ad22bdb5b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 27 Oct 2006 05:32:38 +0000 Subject: [PATCH] fix compile errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/graphicc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 1ab6f397f8..b83475e663 100755 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -32,6 +32,10 @@ #include "wx/module.h" #endif +#ifdef __WXGTK__ +#include "wx/gtk/win_gtk.h" +#endif + #include "wx/graphics.h" #if wxUSE_GRAPHICS_CONTEXT @@ -1271,7 +1275,7 @@ wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeContext( void * cont wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeWindow( void * window ) { #ifdef __WXGTK__ - return new wxCairoContext(this,(GdkDrawable)window); + return new wxCairoContext(this,(GdkDrawable*)window); #else return NULL; #endif