From 4eb02af8fb7a2f4890835b6ed92c5ceb857ac044 Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 3 May 2017 14:44:30 +0800 Subject: [PATCH] [Client] Use __WINDOWS define --- apps/openmw/mwmp/Networking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 87d73190d..5d2c0431a 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -375,7 +375,7 @@ void Networking::preInit(std::vector &content, Files::Collections & if (!checksumsResponse.empty()) // something wrong { -#if defined(_MSC_VER) +#if defined(__WINDOWS) errmsg = comparePlugins(checksums, checksumsResponse); #else errmsg = comparePluginsMonospaced(checksums, checksumsResponse); @@ -386,7 +386,7 @@ void Networking::preInit(std::vector &content, Files::Collections & { LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str()); SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0); -#if defined(_MSC_VER) +#if defined(__WINDOWS) throw std::runtime_error("Shutting down."); #endif MWBase::Environment::get().getStateManager()->requestQuit();