[vlc-commits] qtsound: Only redeclare function if it does not exist in sdk
    David Fuhrmann 
    git at videolan.org
       
    Sat Oct 27 17:49:11 CEST 2018
    
    
  
vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct 21 21:33:32 2018 +0200| [18ff9301fc1acf0f4add623def15ed3ceed8faae] | committer: David Fuhrmann
qtsound: Only redeclare function if it does not exist in sdk
(cherry picked from commit 608de0ae39e2ac0e18ed1a1f2b6010ac58eab09d)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=18ff9301fc1acf0f4add623def15ed3ceed8faae
---
 modules/access/qtsound.m | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/modules/access/qtsound.m b/modules/access/qtsound.m
index a5ebe55793..533d6e8134 100644
--- a/modules/access/qtsound.m
+++ b/modules/access/qtsound.m
@@ -41,14 +41,17 @@
 
 #define QTKIT_VERSION_MIN_REQUIRED 70603
 
+#import <AvailabilityMacros.h>
 #import <QTKit/QTKit.h>
 #import <AVFoundation/AVFoundation.h>
 
+#ifndef MAC_OS_X_VERSION_10_14
 @interface AVCaptureDevice (AVCaptureDeviceAuthorizationSince10_14)
 
 + (void)requestAccessForMediaType:(AVMediaType)mediaType completionHandler:(void (^)(BOOL granted))handler API_AVAILABLE(macos(10.14), ios(7.0));
 
 @end
+#endif
 
 /*****************************************************************************
  * Local prototypes.
    
    
More information about the vlc-commits
mailing list