diff --git a/include/mapnik/cairo_renderer.hpp b/include/mapnik/cairo_renderer.hpp index d468b6b1b..fe7655a9b 100644 --- a/include/mapnik/cairo_renderer.hpp +++ b/include/mapnik/cairo_renderer.hpp @@ -22,9 +22,13 @@ //$Id$ +#if defined(HAVE_CAIRO) + #ifndef CAIRO_RENDERER_HPP #define CAIRO_RENDERER_HPP + + // mapnik #include #include @@ -120,4 +124,6 @@ namespace mapnik { }; } +#endif + #endif //CAIRO_RENDERER_HPP diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp index 39ec8d36a..b1cf8bc98 100644 --- a/src/cairo_renderer.cpp +++ b/src/cairo_renderer.cpp @@ -21,6 +21,8 @@ *****************************************************************************/ //$Id$ +#if defined(HAVE_CAIRO) + // mapnik #include #include @@ -1069,3 +1071,5 @@ namespace mapnik template class cairo_renderer; template class cairo_renderer; } + +#endif