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:
parent
af7a0ee55f
commit
f0fb53dec3
@ -108,7 +108,9 @@
|
||||
|
||||
/* 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 */
|
||||
# define Q_DECL_NOTHROW throw()
|
||||
# ifdef __cplusplus
|
||||
# define Q_DECL_NOTHROW throw()
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) || defined(__TURBOC__)
|
||||
# define Q_CC_BOR
|
||||
|
Loading…
Reference in New Issue
Block a user