[vlc-devel] [PATCH] macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11

epirat07 at gmail.com epirat07 at gmail.com
Tue Feb 23 19:25:47 CET 2016


From: Marvin Scholz <epirat07 at gmail.com>

---
 modules/services_discovery/bonjour.m | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/services_discovery/bonjour.m b/modules/services_discovery/bonjour.m
index 9f35a71..9503ae9 100644
--- a/modules/services_discovery/bonjour.m
+++ b/modules/services_discovery/bonjour.m
@@ -56,11 +56,19 @@ NSString *const VLCBonjourProtocolServiceName = @"VLCBonjourProtocolServiceName"
 
 @interface VLCNetServiceDiscoveryController : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
 {
+#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100
     NSArray<NSNetServiceBrowser *> *_serviceBrowsers;
 
     NSMutableArray<NSNetService *> *_rawNetServices;
     NSMutableArray<NSNetService *> *_resolvedNetServices;
     NSMutableArray<NSValue *> *_inputItemsForNetServices;
+#else
+    NSArray *_serviceBrowsers;
+
+    NSMutableArray *_rawNetServices;
+    NSMutableArray *_resolvedNetServices;
+    NSMutableArray *_inputItemsForNetServices;
+#endif
 
     NSArray *_activeProtocols;
 }
-- 
2.2.1



More information about the vlc-devel mailing list