mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
[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:
parent
cc3ed63af6
commit
ffe61e0895
13 changed files with 56 additions and 46 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue