From 073fed11e8f40dad3e72d3e7cdc6fe895f07c991 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 8 Aug 2024 16:42:06 +0200 Subject: [PATCH] Don't rely on qdoc running on a QT_SUPPORTS_INT128 platform Make the typedefs (and functions using qint128) visible to qdoc, always. Amends befda1accab417ce5f55cb11816e6ded51af55e3. Pick-to: 6.7 Change-Id: I7743b130a87033bf6d8cac317d6c5e9ea09f845a Reviewed-by: Thiago Macieira (cherry picked from commit e4a0a2fe8d5cd468a3dde46d6bdcdf8c5b0a9804) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qtypes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/global/qtypes.h b/src/corelib/global/qtypes.h index 28458f63c20..9cc0a9126b8 100644 --- a/src/corelib/global/qtypes.h +++ b/src/corelib/global/qtypes.h @@ -63,7 +63,9 @@ typedef unsigned long long quint64; /* 64 bit unsigned */ typedef qint64 qlonglong; typedef quint64 qulonglong; -#if defined(__SIZEOF_INT128__) && !defined(QT_NO_INT128) +#ifdef Q_QDOC // QDoc always needs to see the typedefs +# define QT_SUPPORTS_INT128 16 +#elif defined(__SIZEOF_INT128__) && !defined(QT_NO_INT128) # define QT_SUPPORTS_INT128 __SIZEOF_INT128__ #else # undef QT_SUPPORTS_INT128