diff --git a/Source/Core/Core/Analytics.cpp b/Source/Core/Core/Analytics.cpp index ea661df38c..ecf85be4ec 100644 --- a/Source/Core/Core/Analytics.cpp +++ b/Source/Core/Core/Analytics.cpp @@ -39,9 +39,6 @@ namespace constexpr const char* ANALYTICS_ENDPOINT = "https://analytics.dolphin-emu.org/report"; } // namespace -std::mutex DolphinAnalytics::s_instance_mutex; -std::shared_ptr DolphinAnalytics::s_instance; - #if defined(ANDROID) static std::function s_get_val_func; void DolphinAnalytics::AndroidSetGetValFunc(std::function func) diff --git a/Source/Core/Core/Analytics.h b/Source/Core/Core/Analytics.h index e711fe24bf..77faa3d80c 100644 --- a/Source/Core/Core/Analytics.h +++ b/Source/Core/Core/Analytics.h @@ -127,6 +127,6 @@ private: // Shared pointer in order to allow for multithreaded use of the instance and // avoid races at reinitialization time. - static std::mutex s_instance_mutex; - static std::shared_ptr s_instance; + static inline std::mutex s_instance_mutex; + static inline std::shared_ptr s_instance; };