summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 7c37ecdf4..b695948fb 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -33,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>
@@ -441,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;
@@ -459,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);
@@ -478,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;
@@ -496,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);