]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cairo.cpp
Don't set cell value in wxDataViewEvent in one place only.
[wxWidgets.git] / src / common / cairo.cpp
index 871e320b0579bd6666395fdf66d6c2d3dce767cb..572b0bb840f3418453f3241e79aae22746437ea7 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_CAIRO
+
 // keep cairo.h from defining dllimport as we're defining the symbols inside
 // the wx dll in order to load them dynamically.
 #define cairo_public 
 
-#include "wx/cairo.h"
+#include <cairo.h>
 #include "wx/dynlib.h"
 
-#if wxUSE_CAIRO
+#ifdef __WXMSW__
+#include "wx/msw/wrapwin.h"
+#endif
 
 #ifdef __WXMAC__
 #include "wx/osx/private.h"
@@ -375,18 +379,13 @@ bool wxCairo::IsOk()
 // implementation of the functions themselves
 // ============================================================================
 
-extern "C"
-{
-
 bool wxCairoInit()
 {
     return wxCairo::Initialize();
 }
 
-void wxCairoCleanUp()
+extern "C"
 {
-    wxCairo::CleanUp();
-}
 
 #define wxIMPL_CAIRO_FUNC(rettype, name, params, args, defret)                \
     rettype name params                                                               \