[macOS / iOS] Fix text-to-speech build with older macOS / iOS SDK.

Add __has_include check for AVFAudio include.
Add some explicit casts to avoid conflicts.
Change all `include`s to `import`s for consistency.
This commit is contained in:
bruvzg 2022-05-10 21:02:26 +03:00
parent cc3ed63af6
commit ffe61e0895
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
13 changed files with 56 additions and 46 deletions

View file

@ -34,8 +34,8 @@
#include "core/string/print_string.h"
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#import <CoreFoundation/CoreFoundation.h>
#import <CoreServices/CoreServices.h>
bool osx_is_app_bundle_installed(const String &p_bundle_id) {
CFStringRef bundle_id = CFStringCreateWithCString(nullptr, p_bundle_id.utf8(), kCFStringEncodingUTF8);