qtformat_impl.h: do not include <version>

We intentionally include <version> in the most low-level Qt
header, so that all other headers could just assume that it
is always available.

In this case it is already available from qtconfiginclude.h,
which is included from qtconfigmacros.h.

Amends 20b6ebea84997ecd70d37640f68232c60cc7231f.

Found in Qt 6.9 API review.

Change-Id: I430c7392b5237ec582708e3ae1170eabc7c3a402
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 9a3199fec2673e591811a4775ec8a00073c9f433)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ivan Solovev 2025-01-17 14:41:53 +01:00 committed by Qt Cherry-pick Bot
parent 3b5fcd4901
commit 8e4ca03733

View File

@ -12,10 +12,6 @@
#include <QtCore/qsystemdetection.h>
#include <QtCore/qtconfigmacros.h>
#if __has_include(<version>)
# include <version>
#endif
// Users can disable std::format support in their
// projects by using this definition.
#if !defined(QT_NO_STD_FORMAT_SUPPORT) && defined(__cpp_lib_format) && __cpp_lib_format >= 202106L