diff options
Diffstat (limited to 'src/corelib/global/qcompilerdetection.h')
-rw-r--r-- | src/corelib/global/qcompilerdetection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 42c7d04128..919f8f82c1 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -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 |