X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/675f687593e258dec8fe7a3cad6aef41ac28fc84..17beda75ef9780ebef5044e41889a9b598dcf186:/src/common/cairo.cpp diff --git a/src/common/cairo.cpp b/src/common/cairo.cpp index 871e320b05..572b0bb840 100644 --- a/src/common/cairo.cpp +++ b/src/common/cairo.cpp @@ -16,14 +16,18 @@ #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 #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 \