From 51bc265db341f1d98b4fd46be80241771f854eb5 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 9 Mar 2015 16:15:18 +0200 Subject: Make the logging system static No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously). --- bin/render.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index 71981b9d96..01f6929092 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -5,15 +5,10 @@ #include #include +#include #include #include -#if __APPLE__ -#include -#else -#include -#endif - #pragma GCC diagnostic push #ifndef __clang__ #pragma GCC diagnostic ignored "-Wunused-local-typedefs" @@ -71,13 +66,6 @@ int main(int argc, char *argv[]) { using namespace mbgl; - -#if __APPLE__ - Log::Set(); -#else - Log::Set(); -#endif - mbgl::SQLiteCache cache(cache_file); mbgl::DefaultFileSource fileSource(&cache); -- cgit v1.2.1