Skip to content

Commit 049fc50

Browse files
committed
Fix build with -no-feature-timezone
Amends 487f04b Change-Id: I69d18820c2552b4beaa107f6fdde7554f6c9933f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
1 parent 72121c8 commit 049fc50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/corelib/compat/removed_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,12 +1558,14 @@ bool QFile::copy(const QString &fileName, const QString &newName)
15581558

15591559
#include "qobjectdefs.h" // uses QT_CORE_INLINE_SINCE
15601560

1561+
#if QT_CONFIG(timezone)
15611562
#include "qtimezone.h"
15621563

15631564
bool QTimeZone::isTimeZoneIdAvailable(const QByteArray &ianaId)
15641565
{
15651566
return isTimeZoneIdAvailable(QByteArrayView{ianaId});
15661567
}
1568+
#endif // QT_CONFIG(timezone)
15671569

15681570
#include "qurlquery.h" // uses QT_CORE_INLINE_SINCE
15691571

0 commit comments

Comments
 (0)