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. Pick-to: 6.9 Change-Id: I430c7392b5237ec582708e3ae1170eabc7c3a402 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
bb716c0111
commit
9a3199fec2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user