diff --git a/src/corelib/global/qtypes.cpp b/src/corelib/global/qtypes.cpp index bd01498ce2d..6b79c1fa9ea 100644 --- a/src/corelib/global/qtypes.cpp +++ b/src/corelib/global/qtypes.cpp @@ -503,10 +503,10 @@ static_assert(sizeof(size_t) == sizeof(qsizetype)); // implied by the definition static_assert((std::is_same::value)); static_assert(std::is_same_v); -#ifdef QT_COMPILER_SUPPORTS_INT128 +#if defined(QT_COMPILER_SUPPORTS_INT128) && !defined(QT_NO_INT128) # ifndef QT_SUPPORTS_INT128 # error Qt needs to be compiled in a mode that enables INT128 \ - if the compiler supports it in principle. + if the compiler supports it in principle and QT_NO_INT128 is not defined. # endif #endif