X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16c0096fefc9be2a952beefc79a137931a394dee..72625b36b6fdaea839a5132e8f5d52dea7155bec:/src/common/cairo.cpp?ds=sidebyside diff --git a/src/common/cairo.cpp b/src/common/cairo.cpp index 46d649c9f1..572b0bb840 100644 --- a/src/common/cairo.cpp +++ b/src/common/cairo.cpp @@ -16,15 +16,15 @@ #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 #include "wx/dynlib.h" -#if wxUSE_CAIRO - #ifdef __WXMSW__ #include "wx/msw/wrapwin.h" #endif @@ -379,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 \