From 7d92d3f48fd5c14bde3eb1acd20ab6842166a258 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 10 Jul 2018 18:23:59 +0300 Subject: [PATCH] Fix the class vs struct warning --- library/Core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Core.cpp b/library/Core.cpp index 87afdf2c9..5f800db51 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -98,7 +98,8 @@ static bool parseKeySpec(std::string keyspec, int *psym, int *pmod, std::string size_t loadScriptFiles(Core* core, color_ostream& out, const vector& prefix, const std::string& folder); namespace DFHack { -struct MainThread { +class MainThread { +public: //! MainThread::suspend keeps the main DF thread suspended from Core::Init to //! thread exit. static CoreSuspenderBase& suspend() {