MAPNIK_DECL only on __GNUC__ builds

ref: error C2491: 'mapnik::feature_style_processor<Processor>::prepare_layers': definition of dllimport function not allowed
This commit is contained in:
Artem Pavlenko 2023-03-07 11:25:52 +00:00
parent 87ac079bb6
commit f36ac22f82

View file

@ -47,7 +47,11 @@ struct layer_rendering_material;
enum eAttributeCollectionPolicy { DEFAULT = 0, COLLECT_ALL = 1 };
template<typename Processor>
#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);