Enable building gcocoanotification only if OS X min version >= 10.9

This changes the configure checks to check for what is actually
required to build this code.

https://bugzilla.gnome.org/show_bug.cgi?id=747146
This commit is contained in:
John Ralls
2017-03-08 22:26:00 -05:00
committed by Matthias Clasen
parent 0c6c39428c
commit d1a03bc728
3 changed files with 16 additions and 13 deletions

View File

@@ -47,6 +47,10 @@
#include "gdesktopappinfo.h"
#endif
#ifdef HAVE_COCOA
#include <AvailabilityMacros.h>
#endif
/**
* SECTION:giomodule
* @short_description: Loadable GIO Modules
@@ -918,7 +922,7 @@ extern GType g_proxy_resolver_portal_get_type (void);
extern GType g_network_monitor_portal_get_type (void);
#endif
#ifdef HAVE_COCOA
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
extern GType g_cocoa_notification_backend_get_type (void);
#endif
@@ -1121,7 +1125,7 @@ _g_io_modules_ensure_loaded (void)
g_type_ensure (g_network_monitor_portal_get_type ());
g_type_ensure (g_proxy_resolver_portal_get_type ());
#endif
#ifdef HAVE_COCOA
#ifdef HAVE_MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
g_type_ensure (g_cocoa_notification_backend_get_type ());
#endif
#ifdef G_OS_WIN32