From e8935c4cf840b8844789df665bca30be398ac980 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Jul 2008 07:37:48 +0000 Subject: [PATCH] Fix brain fade - python cairo bindings should work again now. --- bindings/python/mapnik_python.cpp | 6 +++--- bindings/python/python_cairo.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/mapnik_python.cpp b/bindings/python/mapnik_python.cpp index e35eb0ab8..2b245a6a1 100644 --- a/bindings/python/mapnik_python.cpp +++ b/bindings/python/mapnik_python.cpp @@ -67,7 +67,7 @@ void export_projection(); #include #include -#if defined(CAIRO) && defined(PYCAIRO) +#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO) #include #endif @@ -83,7 +83,7 @@ void render2(const mapnik::Map& map,mapnik::Image32& image) ren.apply(); } -#if defined(CAIRO) && defined(PYCAIRO) +#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO) void render3(const mapnik::Map& map,PycairoSurface* surface, unsigned offset_x = 0, unsigned offset_y = 0) { @@ -184,7 +184,7 @@ BOOST_PYTHON_MODULE(_mapnik) def("render_tile_to_file",&render_tile_to_file); def("render",&render); def("render",&render2); -#if defined(CAIRO) && defined(PYCAIRO) +#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO) def("render",&render3); def("render",&render4); #endif diff --git a/bindings/python/python_cairo.cpp b/bindings/python/python_cairo.cpp index d029230ee..f0c563438 100644 --- a/bindings/python/python_cairo.cpp +++ b/bindings/python/python_cairo.cpp @@ -21,7 +21,7 @@ *****************************************************************************/ //$Id$ -#if defined(CAIRO) && defined(PYCAIRO) +#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO) #include #include