[vlc-devel] [PATCH] macosx: fix build
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Mon Jul 3 14:21:10 CEST 2017
---
modules/notify/osx_notifications.m | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/notify/osx_notifications.m b/modules/notify/osx_notifications.m
index 5cb4758116..df7ee8bca2 100644
--- a/modules/notify/osx_notifications.m
+++ b/modules/notify/osx_notifications.m
@@ -274,7 +274,7 @@ static int InputCurrent( vlc_object_t *p_this, const char *psz_var,
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
-#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
// Clear the remaining lastNotification in Notification Center, if any
@autoreleasepool {
if (lastNotification && hasNativeNotifications) {
@@ -311,7 +311,7 @@ static int InputCurrent( vlc_object_t *p_this, const char *psz_var,
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
-#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
if (hasNativeNotifications) {
[[NSUserNotificationCenter defaultUserNotificationCenter]
setDelegate:(id<NSUserNotificationCenterDelegate>)self];
@@ -383,7 +383,7 @@ static int InputCurrent( vlc_object_t *p_this, const char *psz_var,
} else if (hasNativeNotifications) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
-#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
// Make the OS X notification and string
NSUserNotification *notification = [NSUserNotification new];
NSString *desc = nil;
@@ -436,7 +436,7 @@ static int InputCurrent( vlc_object_t *p_this, const char *psz_var,
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
-#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
- (void)userNotificationCenter:(NSUserNotificationCenter *)center
didActivateNotification:(NSUserNotification *)notification
{
--
2.13.1
More information about the vlc-devel
mailing list