Don't compile Cairo dynamic linking code with GTK
It's useless as Cairo is always linked to any program using GTK
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_CAIRO
|
#if wxUSE_CAIRO && !defined(__WXGTK20__)
|
||||||
|
|
||||||
// keep cairo.h from defining dllimport as we're defining the symbols inside
|
// keep cairo.h from defining dllimport as we're defining the symbols inside
|
||||||
// the wx dll in order to load them dynamically.
|
// the wx dll in order to load them dynamically.
|
||||||
|
@@ -20,9 +20,11 @@
|
|||||||
|
|
||||||
#if wxUSE_CAIRO
|
#if wxUSE_CAIRO
|
||||||
|
|
||||||
|
#ifndef __WXGTK20__
|
||||||
// keep cairo.h from defining dllimport as we're defining the symbols inside
|
// keep cairo.h from defining dllimport as we're defining the symbols inside
|
||||||
// the wx dll in order to load them dynamically.
|
// the wx dll in order to load them dynamically.
|
||||||
#define cairo_public
|
#define cairo_public
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <cairo.h>
|
#include <cairo.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
@@ -63,7 +65,6 @@ using namespace std;
|
|||||||
// wxGraphicsPath implementation
|
// wxGraphicsPath implementation
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// TODO remove this dependency (gdiplus needs the macros)
|
// TODO remove this dependency (gdiplus needs the macros)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user