From 998607b1067c453df0d1ad1a450d72faab5fd922 Mon Sep 17 00:00:00 2001 From: Naios Date: Fri, 11 Mar 2016 18:55:33 +0100 Subject: Core/Common: Move singleton instances into compilation units * Fixes issues when building shared libraries (prevents gcc and clang from providing several instance) (cherry picked from commit 5c91586797f199259567629a1d4d3f987c73e53c) --- src/common/Logging/Log.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/common/Logging/Log.h') diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h index a90481ad5d2..6f9c5600775 100644 --- a/src/common/Logging/Log.h +++ b/src/common/Logging/Log.h @@ -44,11 +44,7 @@ class Log public: - static Log* instance() - { - static Log instance; - return &instance; - } + static Log* instance(); void Initialize(boost::asio::io_service* ioService); void LoadFromConfig(); -- cgit v1.2.3