From ce14c36475643c4b30fd8d0a52e8d73137047f9e Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 18 Jan 2012 13:43:47 +0200 Subject: Remove Q_CC_MWERKS. This is no longer supported. Change-Id: I3914f5007595fd699fa1e9a565a0a3f59a0e135e Reviewed-by: Jonas Gastal Reviewed-by: Marius Storm-Olsen --- src/corelib/global/qglobal.cpp | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/corelib/global/qglobal.cpp') diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index f8fc49ddbf..cc492f1dfe 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1231,14 +1231,6 @@ bool qSharedBuild() (used to be Symantec C++). */ -/*! - \macro Q_CC_MWERKS - \relates - - Defined if the application is compiled using Metrowerks - CodeWarrior. -*/ - /*! \macro Q_CC_MSVC \relates @@ -1722,20 +1714,6 @@ void *qMemSet(void *dest, int c, size_t n) { return memset(dest, c, n); } static QtMsgHandler handler = 0; // pointer to debug handler -#if defined(Q_CC_MWERKS) && defined(Q_OS_MACX) -extern bool qt_is_gui_used; -static void mac_default_handler(const char *msg) -{ - if (qt_is_gui_used) { - Str255 pmsg; - qt_mac_to_pascal_string(msg, pmsg); - DebugStr(pmsg); - } else { - fprintf(stderr, msg); - } -} -#endif // Q_CC_MWERKS && Q_OS_MACX - #if !defined(Q_OS_WIN) && !defined(QT_NO_THREAD) && !defined(Q_OS_INTEGRITY) && !defined(Q_OS_QNX) && \ defined(_POSIX_THREAD_SAFE_FUNCTIONS) && _POSIX_VERSION >= 200112L namespace { @@ -1859,9 +1837,7 @@ extern Q_CORE_EXPORT void qWinMsgHandler(QtMsgType t, const char* str); */ static void qDefaultMsgHandler(QtMsgType, const char *buf) { -#if defined(Q_CC_MWERKS) && defined(Q_OS_MACX) - mac_default_handler(buf); -#elif defined(Q_OS_WINCE) +#if defined(Q_OS_WINCE) QString fstr = QString::fromLatin1(buf); fstr += QLatin1Char('\n'); OutputDebugString(reinterpret_cast (fstr.utf16())); -- cgit v1.2.3