python: fix compile when cairo is enabled but not pycairo

This commit is contained in:
Dane Springmeyer 2015-01-27 15:33:58 -08:00
parent dfb6116786
commit 939e53e70b

View file

@ -136,13 +136,16 @@ void clear_cache()
#endif
}
#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO)
#if defined(HAVE_CAIRO)
#include <mapnik/cairo_io.hpp>
#include <mapnik/cairo/cairo_renderer.hpp>
#include <cairo.h>
#endif
#if defined(HAVE_PYCAIRO)
#include <boost/python/type_id.hpp>
#include <boost/python/converter/registry.hpp>
#include <pycairo.h>
#include <cairo.h>
static Pycairo_CAPI_t *Pycairo_CAPI;
static void *extract_surface(PyObject* op)
{