diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-17 13:24:46 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-17 21:28:11 +0100 |
commit | 34304e3100883187ca658b8c983af21549496b43 (patch) | |
tree | 5c2e8216740e4ad4e9efc6010539c3a6cfbbbf8e /src/corelib/thread/qbasicatomic.h | |
parent | 1e9dc3ec2f254c711149f8c0376f0403df9b4650 (diff) |
Get rid of Q_COMPILER_CONSTEXPR checks
Is required now.
Change-Id: I62e95929d1649ea1390392230b619bd56d2a0349
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/thread/qbasicatomic.h')
-rw-r--r-- | src/corelib/thread/qbasicatomic.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/corelib/thread/qbasicatomic.h b/src/corelib/thread/qbasicatomic.h index 8c6440a7d7..cb62ed2722 100644 --- a/src/corelib/thread/qbasicatomic.h +++ b/src/corelib/thread/qbasicatomic.h @@ -49,7 +49,7 @@ // If C++11 atomics are supported, use them! // Note that constexpr support is sometimes disabled in QNX or INTEGRITY builds, // but their libraries have <atomic>. -#elif defined(Q_COMPILER_ATOMICS) && (defined(Q_COMPILER_CONSTEXPR) || defined(Q_OS_QNX) || defined(Q_OS_INTEGRITY)) +#elif defined(Q_COMPILER_ATOMICS) # include <QtCore/qatomic_cxx11.h> // We only support one fallback: MSVC, because even on version 2015, it lacks full constexpr support @@ -75,16 +75,7 @@ QT_END_NAMESPACE // New atomics -#if defined(Q_COMPILER_CONSTEXPR) -# if defined(Q_CC_CLANG) && Q_CC_CLANG < 303 - /* - Do not define QT_BASIC_ATOMIC_HAS_CONSTRUCTORS for Clang before version 3.3. - For details about the bug: see http://llvm.org/bugs/show_bug.cgi?id=12670 - */ -# else -# define QT_BASIC_ATOMIC_HAS_CONSTRUCTORS -# endif -#endif +#define QT_BASIC_ATOMIC_HAS_CONSTRUCTORS template <typename T> class QBasicAtomicInteger |