Blob Blame History Raw
commit a09bcea52edb39f92c63f969925b87d91f4de0df
Author: Tom Hughes <tom@compton.nu>
Date:   Mon Jul 23 11:04:22 2018 +0100

    Avoid redefining Pycairo_CAPI

diff --git a/src/mapnik_image.cpp b/src/mapnik_image.cpp
index 80aebcb2c..10e93c8bf 100644
--- a/src/mapnik_image.cpp
+++ b/src/mapnik_image.cpp
@@ -44,6 +44,7 @@
 #include <mapnik/cairo/cairo_context.hpp>
 #include <mapnik/cairo/cairo_image_util.hpp>
 #if PY_MAJOR_VERSION >= 3
+#define PYCAIRO_NO_IMPORT
 #include <py3cairo.h>
 #else
 #include <pycairo.h>