From bd07aa3419be10cffee2d9eba359dd25fbdb11f2 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 4 Sep 2009 10:00:30 +0200 Subject: Fix QDialog test compilation on Mac moc on Mac define itself as GCC, but does not define the __EXCEPTIONS macro. It then defined QT_NO_EXCEPTIONS and did not generate the moc output for some classes, resulting in link errors later. Reviewed-by: Gabi --- src/corelib/global/qglobal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index d279891..a2c532f 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1364,7 +1364,7 @@ inline void qt_noop() {} #ifdef QT_BOOTSTRAPPED # define QT_NO_EXCEPTIONS #endif -#if defined(Q_CC_GNU) && !defined (__EXCEPTIONS) +#if defined(Q_CC_GNU) && !defined (__EXCEPTIONS) && !defined(Q_MOC_RUN) # define QT_NO_EXCEPTIONS #endif -- cgit v0.12