diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index c3c4cf699..b695948fb 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -1,10 +1,11 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,11 +33,11 @@ #include <iostream> -#ifdef WIN32 +#ifdef _WIN32 #include <windows.h> #elif defined __APPLE__ #include <Carbon/Carbon.h> -#endif // WIN32 +#endif // _WIN32 #include <sys/time.h> @@ -440,7 +441,7 @@ void Logger::safeError(const std::string &error_text) error_text.c_str(), nullptr); #else // USE_SDL2 -#ifdef WIN32 +#ifdef _WIN32 MessageBox(nullptr, error_text.c_str(), "Error", MB_ICONERROR | MB_OK); #elif defined __APPLE__ // Str255 msg; @@ -458,10 +459,10 @@ void Logger::safeError(const std::string &error_text) error_text).append("\""); if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; -#else // WIN32 +#else // _WIN32 std::cerr << "Error: " << error_text << std::endl; -#endif // WIN32 +#endif // _WIN32 #endif // USE_SDL2 exit(1); @@ -477,7 +478,7 @@ void Logger::error(const std::string &error_text) error_text.c_str(), nullptr); #else // USE_SDL2 -#ifdef WIN32 +#ifdef _WIN32 MessageBox(nullptr, error_text.c_str(), "Error", MB_ICONERROR | MB_OK); #elif defined __APPLE__ // Str255 msg; @@ -495,10 +496,10 @@ void Logger::error(const std::string &error_text) "Please see log file for more information.\""); if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; -#else // WIN32 +#else // _WIN32 std::cerr << "Error: " << error_text << std::endl; -#endif // WIN32 +#endif // _WIN32 #endif // USE_SDL2 exit(1); |