diff options
author | kook <noemail> | 2010-07-19 21:00:04 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-19 21:01:57 +0200 |
commit | 3d27cb14160fb17eb7fc149ac82318bcec6f1bd6 (patch) | |
tree | dc3a2b4b47c958a04448254d0ae54d48dfdc386c /src/log.cpp | |
parent | 7b2588db55fca14bf957408af9eabb391f1c4db5 (diff) | |
download | mana-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.gz mana-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.bz2 mana-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.tar.xz mana-3d27cb14160fb17eb7fc149ac82318bcec6f1bd6.zip |
Finished to add the xmessage support thanks to Kook.
Reviewed-by: Bertram
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 4 |
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()); |