summaryrefslogtreecommitdiff
path: root/drivers/coreaudio
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 /drivers/coreaudio
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 'drivers/coreaudio')
-rw-r--r--drivers/coreaudio/audio_driver_coreaudio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/coreaudio/audio_driver_coreaudio.h b/drivers/coreaudio/audio_driver_coreaudio.h
index b19f133d89..f86037f092 100644
--- a/drivers/coreaudio/audio_driver_coreaudio.h
+++ b/drivers/coreaudio/audio_driver_coreaudio.h
@@ -35,9 +35,9 @@
#include "servers/audio_server.h"
-#include <AudioUnit/AudioUnit.h>
+#import <AudioUnit/AudioUnit.h>
#ifdef OSX_ENABLED
-#include <CoreAudio/AudioHardware.h>
+#import <CoreAudio/AudioHardware.h>
#endif
class AudioDriverCoreAudio : public AudioDriver {