Correct #if-ery on a pair of qtimezone.h forward declarations

The {CF,NS}TimeZone declarations are only used when backends are in play.

Change-Id: I17fd3fc90ce96f35bcb8f81b862cc5d3752e37e8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit c2b0287a4439aaab4c434330ce1744635c29f3fa)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Edward Welbourne 2023-01-17 14:40:28 +01:00 committed by Qt Cherry-pick Bot
parent 6fe36e874d
commit f60bfc90e6

View File

@ -12,7 +12,7 @@
#include <chrono>
#if (defined(Q_OS_DARWIN) || defined(Q_QDOC)) && !defined(QT_NO_SYSTEMLOCALE)
#if QT_CONFIG(timezone) && (defined(Q_OS_DARWIN) || defined(Q_QDOC)) && !defined(QT_NO_SYSTEMLOCALE)
Q_FORWARD_DECLARE_CF_TYPE(CFTimeZone);
Q_FORWARD_DECLARE_OBJC_CLASS(NSTimeZone);
#endif