Mercurial > minori
diff src/sys/osx/dark_theme.cc @ 273:f31305b9f60a
*: various code safety changes
this also makes the code build on Qt 5.7. I can't test it though
because I don't have it working... FAIL!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 18 Apr 2024 16:53:17 -0400 |
parents | 862d0d8619f6 |
children | 22f9aacf6ac1 |
line wrap: on
line diff
--- a/src/sys/osx/dark_theme.cc Thu Apr 18 16:51:35 2024 -0400 +++ b/src/sys/osx/dark_theme.cc Thu Apr 18 16:53:17 2024 -0400 @@ -5,8 +5,6 @@ #include <CoreFoundation/CoreFoundation.h> -#include <QOperatingSystemVersion> - namespace osx { typedef id (*object_message_send)(id, SEL, ...); @@ -39,7 +37,7 @@ } bool DarkThemeAvailable() { - return (QOperatingSystemVersion::current() >= QOperatingSystemVersion::MacOSMojave); + return (__builtin_available(macOS 10.14, *)); } bool IsInDarkTheme() {