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:21:46 +0200 |
commit | d1d730b3e64cd7d0e064b8f3138604df2ad121c4 (patch) | |
tree | 1d90437ec55590af1c4f0f82c9554ba83bf0f8cc /src | |
parent | 54bedfb27c92f8aba1f5721343cb3ee7cbfd5053 (diff) | |
download | mana-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.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()); |