[vlc-commits] macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11
Marvin Scholz
git at videolan.org
Fri Feb 26 10:43:35 CET 2016
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Feb 23 19:25:47 2016 +0100| [38452bb3da7b53b9894ad999fc733224ecc2b5f2] | committer: Felix Paul Kühne
macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38452bb3da7b53b9894ad999fc733224ecc2b5f2
---
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..f9dd45c 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>
{
+#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;
}
More information about the vlc-commits
mailing list