Fix brain fade - python cairo bindings should work again now.

This commit is contained in:
Tom Hughes 2008-07-30 07:37:48 +00:00
parent 7d173be190
commit e8935c4cf8
2 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ void export_projection();
#include <mapnik/config_error.hpp>
#include <mapnik/save_map.hpp>
#if defined(CAIRO) && defined(PYCAIRO)
#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO)
#include <pycairo.h>
#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

View file

@ -21,7 +21,7 @@
*****************************************************************************/
//$Id$
#if defined(CAIRO) && defined(PYCAIRO)
#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO)
#include <boost/python/type_id.hpp>
#include <boost/python/converter/registry.hpp>