File indexing completed on 2026-01-07 10:15:51
0001
0002
0003
0004 #ifndef QTCONCURRENTEXPORTS_H
0005 #define QTCONCURRENTEXPORTS_H
0006
0007 #include <QtCore/qcompilerdetection.h>
0008 #include <QtCore/qtconfigmacros.h> // Q_CONCURRENT_EXPORT
0009 #include <QtCore/qtdeprecationmarkers.h> // QT_IF_DEPRECATED_SINCE
0010
0011 #if defined(QT_SHARED) || !defined(QT_STATIC)
0012 # if defined(QT_BUILD_CONCURRENT_LIB)
0013 # define Q_CONCURRENT_EXPORT Q_DECL_EXPORT
0014 # else
0015 # define Q_CONCURRENT_EXPORT Q_DECL_IMPORT
0016 # endif
0017 #else
0018 # define Q_CONCURRENT_EXPORT
0019 #endif
0020
0021 #if !defined(QT_BUILD_CONCURRENT_LIB) && !defined(QT_STATIC)
0022
0023
0024 # define QT_CONCURRENT_INLINE_SINCE(major, minor) inline
0025 # define QT_CONCURRENT_CONSTEXPR_INLINE_SINCE(major, minor) constexpr
0026 # define QT_CONCURRENT_INLINE_IMPL_SINCE(major, minor) 1
0027 #elif defined(QT_CONCURRENT_BUILD_REMOVED_API)
0028
0029
0030
0031
0032 # define QT_CONCURRENT_INLINE_SINCE(major, minor) \
0033 QT_IF_DEPRECATED_SINCE(major, minor, inline, )
0034 # define QT_CONCURRENT_CONSTEXPR_INLINE_SINCE(major, minor) \
0035 QT_IF_DEPRECATED_SINCE(major, minor, constexpr, )
0036 # define QT_CONCURRENT_INLINE_IMPL_SINCE(major, minor) 1
0037 #else
0038
0039
0040
0041 # define QT_CONCURRENT_INLINE_SINCE(major, minor) \
0042 QT_IF_DEPRECATED_SINCE(major, minor, inline, )
0043 # define QT_CONCURRENT_CONSTEXPR_INLINE_SINCE(major, minor) \
0044 QT_IF_DEPRECATED_SINCE(major, minor, constexpr, )
0045 # define QT_CONCURRENT_INLINE_IMPL_SINCE(major, minor) \
0046 QT_IF_DEPRECATED_SINCE(major, minor, 1, 0)
0047 #endif
0048
0049 #ifdef QT_CONCURRENT_BUILD_REMOVED_API
0050 # define QT_CONCURRENT_REMOVED_SINCE(major, minor) QT_DEPRECATED_SINCE(major, minor)
0051 #else
0052 # define QT_CONCURRENT_REMOVED_SINCE(major, minor) 0
0053 #endif
0054
0055 #endif