summaryrefslogtreecommitdiff
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-05-10 21:02:26 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-05-10 21:11:34 +0300
commitffe61e0895fd1aea746619280eca3cfd59b0c182 (patch)
tree5c882fd193a2ceca93aae1814c3f46b42e946e31 /modules/mono/utils
parentcc3ed63af68ea9262bf8015d34aa6dd6327112e8 (diff)
[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.
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/osx_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/utils/osx_utils.cpp b/modules/mono/utils/osx_utils.cpp
index 835c611709..abb59420eb 100644
--- a/modules/mono/utils/osx_utils.cpp
+++ b/modules/mono/utils/osx_utils.cpp
@@ -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);