diff --git a/src/corelib/global/qtypes.h b/src/corelib/global/qtypes.h index 82de5176c1..6e168e1f87 100644 --- a/src/corelib/global/qtypes.h +++ b/src/corelib/global/qtypes.h @@ -12,6 +12,9 @@ #ifdef __cplusplus # include +# if defined(_HAS_STD_BYTE) && _HAS_STD_BYTE == 0 +# error "Qt requires std::byte, but _HAS_STD_BYTE has been set to 0" +# endif # include # if defined(__STDCPP_FLOAT16_T__) && __has_include() // P1467 implementation - https://wg21.link/p1467