Disable q(u)int128 for Clang with MSVC's STL

Clang supports q(u)int128, however, MSVC's STL doesn't have support for
it in <type_traits> and <limits>. MSVC's STL is used by Clangd on
Windows.

Fixes: QTBUG-128675
Change-Id: Ic0be6b9d2659477829c7b369385ef885dee8d355
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 1f9a660eb2d5c6e3cb9c80dc292f3ec355296515)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Johannes Grunenberg 2024-09-05 23:45:37 +02:00 committed by Qt Cherry-pick Bot
parent 81e6ede3a8
commit 2f4680d143

View File

@ -72,6 +72,9 @@ typedef quint64 qulonglong;
# if defined(__GLIBCXX__) && defined(__STRICT_ANSI__) // -ansi/-std=c++NN instead of gnu++NN # if defined(__GLIBCXX__) && defined(__STRICT_ANSI__) // -ansi/-std=c++NN instead of gnu++NN
# undef QT_SUPPORTS_INT128 // breaks <type_traits> on libstdc++ # undef QT_SUPPORTS_INT128 // breaks <type_traits> on libstdc++
# endif # endif
# if defined(__clang__) && defined(_MSVC_STL_VERSION) // Clang with MSVC's STL
# undef QT_SUPPORTS_INT128 // MSVC's STL doesn't support int128
# endif
#else #else
# undef QT_SUPPORTS_INT128 # undef QT_SUPPORTS_INT128
#endif #endif