macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11
authorMarvin Scholz <epirat07@gmail.com>
Tue, 23 Feb 2016 18:25:47 +0000 (19:25 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 26 Feb 2016 09:43:31 +0000 (10:43 +0100)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
modules/services_discovery/bonjour.m

index 9f35a71..f9dd45c 100644 (file)
@@ -56,11 +56,19 @@ NSString *const VLCBonjourProtocolServiceName = @"VLCBonjourProtocolServiceName"
 
 @interface VLCNetServiceDiscoveryController : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
 {
+#ifdef MAC_OS_X_VERSION_10_11
     NSArray<NSNetServiceBrowser *> *_serviceBrowsers;
 
     NSMutableArray<NSNetService *> *_rawNetServices;
     NSMutableArray<NSNetService *> *_resolvedNetServices;
     NSMutableArray<NSValue *> *_inputItemsForNetServices;
+#else
+    NSArray *_serviceBrowsers;
+
+    NSMutableArray *_rawNetServices;
+    NSMutableArray *_resolvedNetServices;
+    NSMutableArray *_inputItemsForNetServices;
+#endif
 
     NSArray *_activeProtocols;
 }