diff options
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()); |