From f36ac22f821f67223e83a70df8c9453579265b25 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 7 Mar 2023 11:25:52 +0000 Subject: [PATCH] MAPNIK_DECL only on __GNUC__ builds ref: error C2491: 'mapnik::feature_style_processor::prepare_layers': definition of dllimport function not allowed --- include/mapnik/feature_style_processor.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mapnik/feature_style_processor.hpp b/include/mapnik/feature_style_processor.hpp index 07f65a337..060ffacf8 100644 --- a/include/mapnik/feature_style_processor.hpp +++ b/include/mapnik/feature_style_processor.hpp @@ -47,7 +47,11 @@ struct layer_rendering_material; enum eAttributeCollectionPolicy { DEFAULT = 0, COLLECT_ALL = 1 }; template +#ifdef __GNUC__ class MAPNIK_DECL feature_style_processor +#else +class feature_style_processor +#endif { public: explicit feature_style_processor(Map const& m, double scale_factor = 1.0);