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