Bootstrap: Fix compilation of decl/def with different conditionals
By making their conditionals the same Change-Id: I2f1663480103fdfb0c156fc3da2da8d69651824a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>bb10
parent
4ceee3911a
commit
24e4fb34cd
|
|
@ -458,7 +458,7 @@ public:
|
|||
return result.addMSecs(time.time_since_epoch().count());
|
||||
}
|
||||
|
||||
#if QT_CONFIG(timezone)
|
||||
#if QT_CONFIG(timezone) && (__cpp_lib_chrono >= 201907L || defined(Q_QDOC))
|
||||
// zoned_time. defined in qtimezone.h
|
||||
QT_POST_CXX17_API_IN_EXPORTED_CLASS
|
||||
static QDateTime fromStdZonedTime(const std::chrono::zoned_time<
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ Q_CORE_EXPORT QDataStream &operator>>(QDataStream &ds, QTimeZone &tz);
|
|||
Q_CORE_EXPORT QDebug operator<<(QDebug dbg, const QTimeZone &tz);
|
||||
#endif
|
||||
|
||||
#if __cpp_lib_chrono >= 201907L
|
||||
#if QT_CONFIG(timezone) && __cpp_lib_chrono >= 201907L
|
||||
// zoned_time
|
||||
template <typename> // QT_POST_CXX17_API_IN_EXPORTED_CLASS
|
||||
inline QDateTime QDateTime::fromStdZonedTime(const std::chrono::zoned_time<
|
||||
|
|
|
|||
Loading…
Reference in New Issue