From 27b06e50e0c864ee50f9bab8eeb97ac038d0306a Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Tue, 25 Jul 2023 11:12:32 +0200 Subject: QIntegerForSize: fix check for 128-bit ints We do not need the Q_CC_GNU check, as the __SIZEOF_INT128__ check is enough. Pick-to: 6.6 Change-Id: I12bdd02186c4f5dad0ab3f4596f4b37e5c3f7eee Reviewed-by: Thiago Macieira --- src/corelib/global/qtypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qtypes.h b/src/corelib/global/qtypes.h index 412ab3af62..954f22a191 100644 --- a/src/corelib/global/qtypes.h +++ b/src/corelib/global/qtypes.h @@ -107,7 +107,7 @@ template <> struct QIntegerForSize<1> { typedef quint8 Unsigned; typedef qin template <> struct QIntegerForSize<2> { typedef quint16 Unsigned; typedef qint16 Signed; }; template <> struct QIntegerForSize<4> { typedef quint32 Unsigned; typedef qint32 Signed; }; template <> struct QIntegerForSize<8> { typedef quint64 Unsigned; typedef qint64 Signed; }; -#if defined(Q_CC_GNU) && defined(__SIZEOF_INT128__) +#if defined(__SIZEOF_INT128__) template <> struct QIntegerForSize<16> { typedef quint128 Unsigned; typedef qint128 Signed; }; #endif template struct QIntegerForSizeof: QIntegerForSize { }; -- cgit v1.2.3