diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-27 05:11:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-27 05:11:15 +0300 |
commit | f902b4a3c13d1502bec17754f15fce03a21c5aaa (patch) | |
tree | 84d2e91b4983a937492a77abcd0863f42e453f39 /src/log.cpp | |
parent | 3d6d504c4bad50f64d4d54213b13439e938aa517 (diff) | |
download | plus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.gz plus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.bz2 plus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.xz plus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.zip |
Fix errors in MacOS compilation.
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/log.cpp b/src/log.cpp index cd0814f54..9bcf1ea4f 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -197,15 +197,15 @@ void Logger::error(const std::string &error_text) #ifdef WIN32 MessageBox(NULL, error_text.c_str(), "Error", MB_ICONERROR | MB_OK); #elif defined __APPLE__ - Str255 msg; - CFStringRef error; - error = CFStringCreateWithCString(NULL, - error_text.c_str(), - kCFStringEncodingMacRoman); - CFStringGetPascalString(error, msg, 255, kCFStringEncodingMacRoman); - StandardAlert(kAlertStopAlert, - "\pError", - (ConstStr255Param) msg, NULL, NULL); +// Str255 msg; +// CFStringRef error; +// error = CFStringCreateWithCString(NULL, +// error_text.c_str(), +// kCFStringEncodingMacRoman); +// CFStringGetPascalString(error, msg, 255, kCFStringEncodingMacRoman); +// StandardAlert(kAlertStopAlert, +// (const unsigned char*)"\pError", +// (ConstStr255Param) msg, NULL, NULL); #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; std::string msg = "xmessage \"" + error_text + "\""; |