diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/log.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp index f24461cb..65519cba 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -23,6 +23,9 @@ #ifdef WIN32 #include <windows.h> #endif +#ifdef __APPLE__ +#include <Carbon/Carbon.h> +#endif #include <stdarg.h> #include <iostream> @@ -90,6 +93,11 @@ void Logger::error(const std::string &error_text) log("Error: %s", error_text.c_str()); #ifdef WIN32 MessageBox(NULL, error_text.c_str(), "Error", MB_ICONERROR | MB_OK); +#elif defined __APPLE__ + Str255 msg; + c2pstrcpy(msg, error_text.c_str()); + StandardAlert(kAlertStopAlert, "\pError", + (ConstStr255Param)msg, NULL, NULL); #else std::cerr << "Error: " << error_text << std::endl; #endif |