diff options
| -rw-r--r-- | src/qmldom/standalone/private/qtqmlcompilerexports_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qmldom/standalone/private/qtqmlcompilerexports_p.h b/src/qmldom/standalone/private/qtqmlcompilerexports_p.h index 28864cd96f..9191d6ab81 100644 --- a/src/qmldom/standalone/private/qtqmlcompilerexports_p.h +++ b/src/qmldom/standalone/private/qtqmlcompilerexports_p.h @@ -17,6 +17,7 @@ // #if QT_VERSION < QT_VERSION_CHECK(6, 4, 0) + #include <QtCore/qstring.h> namespace Qt { inline namespace Literals { @@ -35,9 +36,16 @@ inline QString operator"" _s(const char16_t *str, size_t size) noexcept } // StringLiterals } // Literals } // Qt + #ifdef Q_QMLCOMPILER_PRIVATE_EXPORT // clashing declaration fixed in ce53e48504f #undef Q_QMLCOMPILER_PRIVATE_EXPORT #endif + +#endif // 6.4.0 + +#ifndef Q_UNREACHABLE_RETURN // new in QT_VERSION_CHECK(6, 5, 0) +# define Q_UNREACHABLE_RETURN(...) do { Q_UNREACHABLE(); return __VA_ARGS__; } while (0) #endif + #define Q_QMLCOMPILER_PRIVATE_EXPORT QMLDOM_EXPORT #endif |
