diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-05-10 21:02:26 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-05-10 21:11:34 +0300 |
commit | ffe61e0895fd1aea746619280eca3cfd59b0c182 (patch) | |
tree | 5c882fd193a2ceca93aae1814c3f46b42e946e31 /platform/osx/joypad_osx.h | |
parent | cc3ed63af68ea9262bf8015d34aa6dd6327112e8 (diff) | |
download | redot-engine-ffe61e0895fd1aea746619280eca3cfd59b0c182.tar.gz |
[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 'platform/osx/joypad_osx.h')
-rw-r--r-- | platform/osx/joypad_osx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/osx/joypad_osx.h b/platform/osx/joypad_osx.h index b09d5ce34a..3f89048ce6 100644 --- a/platform/osx/joypad_osx.h +++ b/platform/osx/joypad_osx.h @@ -32,13 +32,13 @@ #define JOYPADOSX_H #ifdef MACOS_10_0_4 -#include <IOKit/hidsystem/IOHIDUsageTables.h> +#import <IOKit/hidsystem/IOHIDUsageTables.h> #else -#include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h> +#import <Kernel/IOKit/hidsystem/IOHIDUsageTables.h> #endif -#include <ForceFeedback/ForceFeedback.h> -#include <ForceFeedback/ForceFeedbackConstants.h> -#include <IOKit/hid/IOHIDLib.h> +#import <ForceFeedback/ForceFeedback.h> +#import <ForceFeedback/ForceFeedbackConstants.h> +#import <IOKit/hid/IOHIDLib.h> #include "core/input/input.h" |