summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkook <noemail>2010-07-19 21:00:04 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-19 21:01:57 +0200
commit3d27cb14160fb17eb7fc149ac82318bcec6f1bd6 (patch)
treedc3a2b4b47c958a04448254d0ae54d48dfdc386c
parent7b2588db55fca14bf957408af9eabb391f1c4db5 (diff)
downloadmana-client-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.gz
mana-client-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.bz2
mana-client-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.xz
mana-client-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.zip
Finished to add the xmessage support thanks to Kook.
Reviewed-by: Bertram
-rw-r--r--src/log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/log.cpp b/src/log.cpp
index d5a30bb4..435b2da0 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -30,6 +30,8 @@
#include <windows.h>
#elif __APPLE__
#include <Carbon/Carbon.h>
+#elif __linux__ || __linux
+#include <stdlib.h>
#endif
#include <sys/time.h>
@@ -123,7 +125,7 @@ void Logger::error(const std::string &error_text)
StandardAlert(kAlertStopAlert,
"\pError",
(ConstStr255Param) msg, NULL, NULL);
-#elif defined __linux__
+#elif defined __linux__ || __linux
std::cerr << "Error: " << error_text << std::endl;
std::string msg="xmessage \"" + error_text + "\"";
system(msg.c_str());