Show
Ignore:
Timestamp:
07/29/08 04:01:57 (5 months ago)
Author:
tom
Message:

Don't try and include cairo support in the python bindings if we
haven't built mapnik itself with cairo support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/mapnik_python.cpp

    r667 r720  
    6868#include <mapnik/save_map.hpp> 
    6969 
    70 #ifdef HAVE_PYCAIRO 
     70#if defined(CAIRO) && defined(PYCAIRO) 
    7171#include <pycairo.h> 
    7272#endif 
     
    8484} 
    8585 
    86 #ifdef HAVE_PYCAIRO 
     86#if defined(CAIRO) && defined(PYCAIRO) 
    8787 
    8888void render3(const mapnik::Map& map,PycairoSurface* surface, unsigned offset_x = 0, unsigned offset_y = 0) 
     
    185185    def("render",&render);  
    186186    def("render",&render2); 
    187 #ifdef HAVE_PYCAIRO 
     187#if defined(CAIRO) && defined(PYCAIRO) 
    188188    def("render",&render3); 
    189189    def("render",&render4);