diff options
Diffstat (limited to 'src/corelib/global/qendian.h')
-rw-r--r-- | src/corelib/global/qendian.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h index 29d632ef04..8c3b5e4374 100644 --- a/src/corelib/global/qendian.h +++ b/src/corelib/global/qendian.h @@ -105,7 +105,7 @@ inline constexpr T qbswap(T source) return T(qbswap_helper(typename QIntegerForSizeof<T>::Unsigned(source))); } -#ifdef __SIZEOF_INT128__ +#ifdef QT_SUPPORTS_INT128 // extra definitions for q(u)int128, in case std::is_integral_v<~~> == false inline constexpr quint128 qbswap(quint128 source) { @@ -116,7 +116,7 @@ inline constexpr quint128 qbswap(quint128 source) return result; } -inline constexpr quint128 qbswap(qint128 source) +inline constexpr qint128 qbswap(qint128 source) { return qint128(qbswap(quint128(source))); } |