summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 63af7ae64..91f746ef3 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -33,7 +33,7 @@
#include <windows.h>
#elif defined __APPLE__
#include <Carbon/Carbon.h>
-#elif __linux__ || __linux
+#elif defined(__linux__) || defined(__linux)
#include <stdlib.h>
#endif
@@ -205,7 +205,7 @@ void Logger::safeError(const std::string &error_text)
// StandardAlert(kAlertStopAlert,
// (const unsigned char*)"\pError",
// (ConstStr255Param) msg, nullptr, nullptr);
-#elif defined __linux__ || __linux
+#elif defined(__linux__) || defined(__linux)
std::cerr << "Error: " << error_text << std::endl;
std::string msg = "xmessage \"" + error_text + "\"";
if (system(msg.c_str()) == -1)
@@ -232,7 +232,7 @@ void Logger::error(const std::string &error_text)
// StandardAlert(kAlertStopAlert,
// (const unsigned char*)"\pError",
// (ConstStr255Param) msg, nullptr, nullptr);
-#elif defined __linux__ || __linux
+#elif defined(__linux__) || defined(_linux)
std::cerr << "Error: " << error_text << std::endl;
std::string msg = "xmessage \"Error happend. "
"Please see log file for more information.\"";