[Client] Use __WINDOWS define

This commit is contained in:
Koncord 2017-05-03 14:44:30 +08:00
parent 8fa8b8d310
commit 4eb02af8fb

View File

@ -375,7 +375,7 @@ void Networking::preInit(std::vector<std::string> &content, Files::Collections &
if (!checksumsResponse.empty()) // something wrong if (!checksumsResponse.empty()) // something wrong
{ {
#if defined(_MSC_VER) #if defined(__WINDOWS)
errmsg = comparePlugins(checksums, checksumsResponse); errmsg = comparePlugins(checksums, checksumsResponse);
#else #else
errmsg = comparePluginsMonospaced(checksums, checksumsResponse); errmsg = comparePluginsMonospaced(checksums, checksumsResponse);
@ -386,7 +386,7 @@ void Networking::preInit(std::vector<std::string> &content, Files::Collections &
{ {
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str()); LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str());
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0); SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0);
#if defined(_MSC_VER) #if defined(__WINDOWS)
throw std::runtime_error("Shutting down."); throw std::runtime_error("Shutting down.");
#endif #endif
MWBase::Environment::get().getStateManager()->requestQuit(); MWBase::Environment::get().getStateManager()->requestQuit();