diff --git a/src/libs/utils/theme/theme_mac.mm b/src/libs/utils/theme/theme_mac.mm index 6a940240f12..5dc7169dc89 100644 --- a/src/libs/utils/theme/theme_mac.mm +++ b/src/libs/utils/theme/theme_mac.mm @@ -40,7 +40,11 @@ namespace Internal { void forceMacOSLightAquaApperance() { +#if __has_builtin(__builtin_available) if (__builtin_available(macOS 10.14, *)) +#else // Xcode 8 + if (QOperatingSystemVersion::current() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 10, 14, 0)) +#endif NSApp.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua]; }