diff --git a/include/mapnik/geometry/fusion_adapted.hpp b/include/mapnik/geometry/fusion_adapted.hpp index fcf574567..69cbde29f 100644 --- a/include/mapnik/geometry/fusion_adapted.hpp +++ b/include/mapnik/geometry/fusion_adapted.hpp @@ -26,6 +26,8 @@ #include #include +#include + BOOST_FUSION_ADAPT_STRUCT(mapnik::geometry::point, (double, x)(double, y)) BOOST_FUSION_ADAPT_STRUCT(mapnik::geometry::point, (std::int64_t, x)(std::int64_t, y)) diff --git a/include/mapnik/util/singleton.hpp b/include/mapnik/util/singleton.hpp index bfc86913f..ba99b2327 100644 --- a/include/mapnik/util/singleton.hpp +++ b/include/mapnik/util/singleton.hpp @@ -39,7 +39,11 @@ namespace mapnik { template +#ifdef _WIN32 class CreateUsingNew +#else +class MAPNIK_DECL CreateUsingNew +#endif { public: static T* create() { return new T; } @@ -47,7 +51,11 @@ class CreateUsingNew }; template +#ifdef _WIN32 class CreateStatic +#else +class MAPNIK_DECL CreateStatic +#endif { private: using storage_type = typename std::aligned_storage::type;