Added API check to allow compilation/run with mac os < 10.14
@@ -420,6 +420,9 @@ UINT freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEn
goto error_out;
}
+#if defined(MAC_OS_X_VERSION_10_14)
+ if (@available(macOS 10.14, *))
+ {
AVAuthorizationStatus status =
[AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio];
switch (status)
@@ -447,6 +450,8 @@ UINT freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEn
default:
break;
}
+ }
+#endif
return CHANNEL_RC_OK;
error_out:
