diff --git a/src/corelib/text/qlatin1stringview.h b/src/corelib/text/qlatin1stringview.h index 73769df4cb6..31c36c63120 100644 --- a/src/corelib/text/qlatin1stringview.h +++ b/src/corelib/text/qlatin1stringview.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #if 0 @@ -24,8 +25,7 @@ QT_BEGIN_NAMESPACE class QString; -#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC) -# define Q_L1S_VIEW_IS_PRIMARY +#ifdef Q_L1S_VIEW_IS_PRIMARY class QLatin1StringView #else class QLatin1String diff --git a/src/corelib/text/qstringfwd.h b/src/corelib/text/qstringfwd.h index 6d75201f7eb..374a8ff3cbe 100644 --- a/src/corelib/text/qstringfwd.h +++ b/src/corelib/text/qstringfwd.h @@ -28,6 +28,7 @@ QT_END_NO_CHAR8_T_NAMESPACE class QByteArray; class QByteArrayView; #if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC) +# define Q_L1S_VIEW_IS_PRIMARY class QLatin1StringView; using QLatin1String = QLatin1StringView; #else