diff options
Diffstat (limited to 'src/tools/tqglobal.cpp')
-rw-r--r-- | src/tools/tqglobal.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/tools/tqglobal.cpp b/src/tools/tqglobal.cpp index d77e284ea..038e1225c 100644 --- a/src/tools/tqglobal.cpp +++ b/src/tools/tqglobal.cpp @@ -447,34 +447,12 @@ static TQtMsgHandler handler = 0; // pointer to debug handler static const int QT_BUFFER_LENGTH = 8196; // internal buffer length -#ifdef Q_CC_MWERKS - -#include "qt_mac.h" - -extern bool tqt_is_gui_used; -static void mac_default_handler( const char *msg ) -{ - if ( tqt_is_gui_used ) { - const unsigned char *p = p_str(msg); - DebugStr(p); - free((void*)p); - } else { - fprintf( stderr, msg ); - } -} - -#endif - void handle_buffer(const char *buf, TQtMsgType msgType) { if ( handler ) { (*handler)( msgType, buf ); } else if (msgType == TQtFatalMsg) { -#if defined(Q_CC_MWERKS) - mac_default_handler(buf); -#else fprintf( stderr, "%s\n", buf ); // add newline -#endif #if defined(Q_OS_UNIX) && defined(QT_DEBUG) abort(); // trap; generates core dump #elif defined(Q_OS_TEMP) && defined(QT_DEBUG) @@ -487,9 +465,7 @@ void handle_buffer(const char *buf, TQtMsgType msgType) exit( 1 ); // goodbye cruel world #endif } else { -#if defined(Q_CC_MWERKS) - mac_default_handler(buf); -#elif defined(Q_OS_TEMP) +#if defined(Q_OS_TEMP) TQString fstr( buf ); OutputDebugString( (fstr + "\n").ucs2() ); #else |