diff --git a/include/mapnik/svg/svg_path_commands.hpp b/include/mapnik/svg/svg_path_commands.hpp index 837a24fed..6d9434d7a 100644 --- a/include/mapnik/svg/svg_path_commands.hpp +++ b/include/mapnik/svg/svg_path_commands.hpp @@ -23,6 +23,7 @@ #ifndef SVG_COMMANDS_HPP #define SVG_COMMANDS_HPP +#include #include #include #include @@ -31,6 +32,11 @@ namespace mapnik { namespace svg { using namespace boost::fusion; + inline double deg2rad(double deg) + { + return (M_PI * deg)/180.0; + } + template struct move_to { diff --git a/include/mapnik/svg/svg_path_grammar.hpp b/include/mapnik/svg/svg_path_grammar.hpp index fdce29dfd..3cc078d2f 100644 --- a/include/mapnik/svg/svg_path_grammar.hpp +++ b/include/mapnik/svg/svg_path_grammar.hpp @@ -36,13 +36,7 @@ namespace mapnik { namespace svg { using namespace boost::spirit; using namespace boost::fusion; using namespace boost::phoenix; - - inline double deg2rad(double deg) - { - return (M_PI * deg)/180.0; - } - - + template struct svg_path_grammar : qi::grammar {