From d4f11bd80e6a9a2809d97d0cce2aa9730658f50c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 2 Oct 2014 10:27:17 -0700 Subject: [PATCH] fix miniz visibility with -fvisibility=hidden --- include/mapnik/miniz_png.hpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/include/mapnik/miniz_png.hpp b/include/mapnik/miniz_png.hpp index 1956e5183..cc59931c8 100644 --- a/include/mapnik/miniz_png.hpp +++ b/include/mapnik/miniz_png.hpp @@ -32,9 +32,8 @@ #include #include -#ifdef _MSC_VER -#include -#endif +#include +#include /* miniz.c porting issues: - duplicate symbols in python bindings require moving miniz.c include to just cpp file @@ -84,14 +83,12 @@ private: static const unsigned char IEND_tpl[]; }; -#ifdef _MSC_VER -template MAPNIK_DECL void PNGWriter::writeIDAT(image_data_8 const& image); -template MAPNIK_DECL void PNGWriter::writeIDAT >(image_view const& image); -template MAPNIK_DECL void PNGWriter::writeIDAT(image_data_32 const& image); -template MAPNIK_DECL void PNGWriter::writeIDAT >(image_view const& image); -template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha(image_data_32 const& image); -template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha >(image_view const& image); -#endif +extern template MAPNIK_DECL void PNGWriter::writeIDAT(image_data_8 const& image); +extern template MAPNIK_DECL void PNGWriter::writeIDAT >(image_view const& image); +extern template MAPNIK_DECL void PNGWriter::writeIDAT(image_data_32 const& image); +extern template MAPNIK_DECL void PNGWriter::writeIDAT >(image_view const& image); +extern template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha(image_data_32 const& image); +extern template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha >(image_view const& image); }}