diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-07-25 11:12:32 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-07-25 19:48:35 +0200 |
commit | 27b06e50e0c864ee50f9bab8eeb97ac038d0306a (patch) | |
tree | 6568c6a0d9de3b0596bce69af15b83e8551a8e52 | |
parent | a7f227f56cfe562280e89d3c73040f7e8384129e (diff) |
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 <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/global/qtypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <class T> struct QIntegerForSizeof: QIntegerForSize<sizeof(T)> { }; |