From f60bfc90e68494911c74e6b5be982a8297f7f5cc Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 17 Jan 2023 14:40:28 +0100 Subject: [PATCH] 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 (cherry picked from commit c2b0287a4439aaab4c434330ce1744635c29f3fa) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/time/qtimezone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/time/qtimezone.h b/src/corelib/time/qtimezone.h index 69286538087..1e5c2a8e6c3 100644 --- a/src/corelib/time/qtimezone.h +++ b/src/corelib/time/qtimezone.h @@ -12,7 +12,7 @@ #include -#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