diff options
Diffstat (limited to 'gdk/macos/gdkmacosmonitor.c')
-rw-r--r-- | gdk/macos/gdkmacosmonitor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/macos/gdkmacosmonitor.c b/gdk/macos/gdkmacosmonitor.c index fdeadadcea..ad124a9e64 100644 --- a/gdk/macos/gdkmacosmonitor.c +++ b/gdk/macos/gdkmacosmonitor.c @@ -145,6 +145,7 @@ GetSubpixelLayout (CGDirectDisplayID screen_id) static char * GetLocalizedName (NSScreen *screen) { +#ifdef AVAILABLE_MAC_OS_X_VERSION_10_15_AND_LATER GDK_BEGIN_MACOS_ALLOC_POOL; NSString *str; @@ -158,6 +159,9 @@ GetLocalizedName (NSScreen *screen) GDK_END_MACOS_ALLOC_POOL; return g_steal_pointer (&name); +#else + return NULL; +#endif } static char * |