mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 91 forks source link

Avoid redefining Pycairo_CAPI #190

Closed tomhughes closed 6 years ago

tomhughes commented 6 years ago

Recent versions of pycairo declare Pycairo_CAPI as extern rather than static in the header, so if you include py3cairo.h in more than one file then you need to tell it to only declare it in the additional files by defining PYCAIRO_NO_IMPORT.

talaj commented 6 years ago

Thanks! I will put the commit also to master branch.