summaryrefslogtreecommitdiff
path: root/src
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:21:46 +0200
commitd1d730b3e64cd7d0e064b8f3138604df2ad121c4 (patch)
tree1d90437ec55590af1c4f0f82c9554ba83bf0f8cc /src
parent54bedfb27c92f8aba1f5721343cb3ee7cbfd5053 (diff)
downloadmana-d1d730b3e64cd7d0e064b8f3138604df2ad121c4.tar.gz
mana-d1d730b3e64cd7d0e064b8f3138604df2ad121c4.tar.bz2
mana-d1d730b3e64cd7d0e064b8f3138604df2ad121c4.tar.xz
mana-d1d730b3e64cd7d0e064b8f3138604df2ad121c4.zip
Finished to add the xmessage support thanks to Kook.
Reviewed-by: Bertram
Diffstat (limited to 'src')
-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());