call mapnik::setup automatically
This commit is contained in:
parent
515a7e8279
commit
4493a06878
1 changed files with 9 additions and 0 deletions
|
@ -39,3 +39,12 @@ void register_image_readers()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} // namespace mapnik
|
} // namespace mapnik
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
class AutoSetup final
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
AutoSetup() { mapnik::setup(); };
|
||||||
|
};
|
||||||
|
AutoSetup auto_setup{};
|
||||||
|
} // namespace
|
||||||
|
|
Loading…
Reference in a new issue