summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/thread/qatomic_bootstrap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/thread/qatomic_bootstrap.h b/src/corelib/thread/qatomic_bootstrap.h
index c4279ee7b1..125803a15c 100644
--- a/src/corelib/thread/qatomic_bootstrap.h
+++ b/src/corelib/thread/qatomic_bootstrap.h
@@ -52,6 +52,14 @@ QT_END_NAMESPACE
#pragma qt_sync_stop_processing
#endif
+#define Q_ATOMIC_INT8_IS_SUPPORTED
+template<> struct QAtomicOpsSupport<1> { enum { IsSupported = 1 }; };
+#define Q_ATOMIC_INT16_IS_SUPPORTED
+template<> struct QAtomicOpsSupport<2> { enum { IsSupported = 1 }; };
+#define Q_ATOMIC_INT32_IS_SUPPORTED
+#define Q_ATOMIC_INT64_IS_SUPPORTED
+template<> struct QAtomicOpsSupport<8> { enum { IsSupported = 1 }; };
+
template <typename T> struct QAtomicOps: QGenericAtomicOps<QAtomicOps<T> >
{
typedef T Type;