summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtimezone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qtimezone.cpp')
-rw-r--r--src/corelib/tools/qtimezone.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/tools/qtimezone.cpp b/src/corelib/tools/qtimezone.cpp
index 9de9e5de8b..ad13433583 100644
--- a/src/corelib/tools/qtimezone.cpp
+++ b/src/corelib/tools/qtimezone.cpp
@@ -59,7 +59,9 @@ static QTimeZonePrivate *newBackendTimeZone()
return new QUtcTimeZonePrivate();
#endif // QT_USE_ICU
#else
-#if defined Q_OS_UNIX && !defined Q_OS_MAC
+#if defined Q_OS_MAC
+ return new QMacTimeZonePrivate();
+#elif defined Q_OS_UNIX
return new QTzTimeZonePrivate();
#elif defined QT_USE_ICU
return new QIcuTimeZonePrivate();
@@ -79,7 +81,9 @@ static QTimeZonePrivate *newBackendTimeZone(const QByteArray &olsenId)
return new QUtcTimeZonePrivate(olsenId);
#endif // QT_USE_ICU
#else
-#if defined Q_OS_UNIX && !defined Q_OS_MAC
+#if defined Q_OS_MAC
+ return new QMacTimeZonePrivate(olsenId);
+#elif defined Q_OS_UNIX
return new QTzTimeZonePrivate(olsenId);
#elif defined QT_USE_ICU
return new QIcuTimeZonePrivate(olsenId);