throw() is C++, so don't use it in C mode

Q_DECL_NOTHROW is used by qVersion(), which can be extern "C".

Change-Id: If71f3bc3a0df3e8321237e5ac9f3bea82380c1e4
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Thiago Macieira 2012-09-12 15:20:06 +02:00 committed by Qt by Nokia
parent af7a0ee55f
commit f0fb53dec3

View File

@ -108,7 +108,9 @@
/* only defined for MSVC since that's the only compiler that actually optimizes for this */ /* only defined for MSVC since that's the only compiler that actually optimizes for this */
/* might get overridden further down when Q_COMPILER_NOEXCEPT is detected */ /* might get overridden further down when Q_COMPILER_NOEXCEPT is detected */
# define Q_DECL_NOTHROW throw() # ifdef __cplusplus
# define Q_DECL_NOTHROW throw()
# endif
#elif defined(__BORLANDC__) || defined(__TURBOC__) #elif defined(__BORLANDC__) || defined(__TURBOC__)
# define Q_CC_BOR # define Q_CC_BOR