From 4493a06878dd9cf751525a1143719fffe9872248 Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Tue, 15 Mar 2022 17:34:51 +0100 Subject: [PATCH] call mapnik::setup automatically --- src/mapnik.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mapnik.cpp b/src/mapnik.cpp index 0a9630ea9..0a67bce34 100644 --- a/src/mapnik.cpp +++ b/src/mapnik.cpp @@ -39,3 +39,12 @@ void register_image_readers() #endif } } // namespace mapnik + +namespace { +class AutoSetup final +{ + public: + AutoSetup() { mapnik::setup(); }; +}; +AutoSetup auto_setup{}; +} // namespace