diff --git a/include/mapnik/expression_grammar.hpp b/include/mapnik/expression_grammar.hpp index b0da07f76..40fd239ec 100644 --- a/include/mapnik/expression_grammar.hpp +++ b/include/mapnik/expression_grammar.hpp @@ -125,8 +125,13 @@ struct integer_parser typedef qi::int_parser type; }; +#ifdef __GNUC__ +template +struct MAPNIK_DECL expression_grammar : qi::grammar +#else template struct expression_grammar : qi::grammar +#endif { typedef qi::rule rule_type;