summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-01 12:11:48 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-01 15:07:49 (GMT)
commitf88f879954c31e45c2edb1f5a8050673a471c78e (patch)
tree66726553ccedc7466ff708bc2d6faf43e016723f /src/corelib
parent4d403875d9d88d2acb0433511eb3f44e0dee4377 (diff)
downloadQt-f88f879954c31e45c2edb1f5a8050673a471c78e.zip
Qt-f88f879954c31e45c2edb1f5a8050673a471c78e.tar.gz
Qt-f88f879954c31e45c2edb1f5a8050673a471c78e.tar.bz2
Define QT_NO_EXCEPTIONS if we detect that we are building without exceptions on gcc
This is necessary to compile applications that are compiled without exception support (many KDE applications) Reviewed-by: Thiago
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qglobal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index c34fc31..765665c 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1364,6 +1364,9 @@ inline void qt_noop() {}
#ifdef QT_BOOTSTRAPPED
# define QT_NO_EXCEPTIONS
#endif
+#if defined(Q_CC_GNU) && !defined (__EXCEPTIONS)
+# define QT_NO_EXCEPTIONS
+#endif
#ifdef QT_NO_EXCEPTIONS
# define QT_TRY if (true)