From 666301f9f969eef83087bdf5368a05a1f5d4a0b2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 16 Nov 2023 21:01:28 -0800
Subject: [PATCH] Fixed build with older macOS SDK
---
src/joystick/apple/SDL_mfijoystick_c.h | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/joystick/apple/SDL_mfijoystick_c.h b/src/joystick/apple/SDL_mfijoystick_c.h
index 7bd52d79d3ce..0b3288588627 100644
--- a/src/joystick/apple/SDL_mfijoystick_c.h
+++ b/src/joystick/apple/SDL_mfijoystick_c.h
@@ -47,24 +47,24 @@ typedef struct joystick_hwdata
int nbuttons;
int nhats;
Uint32 button_mask;
- BOOL is_xbox;
- BOOL is_ps4;
- BOOL is_ps5;
- BOOL is_switch_pro;
- BOOL is_switch_joycon_pair;
- BOOL is_switch_joyconL;
- BOOL is_switch_joyconR;
- BOOL is_stadia;
- BOOL is_backbone_one;
+ SDL_bool is_xbox;
+ SDL_bool is_ps4;
+ SDL_bool is_ps5;
+ SDL_bool is_switch_pro;
+ SDL_bool is_switch_joycon_pair;
+ SDL_bool is_switch_joyconL;
+ SDL_bool is_switch_joyconR;
+ SDL_bool is_stadia;
+ SDL_bool is_backbone_one;
int is_siri_remote;
NSArray *axes;
NSArray *buttons;
- BOOL has_dualshock_touchpad;
- BOOL has_xbox_paddles;
- BOOL has_xbox_share_button;
- BOOL has_nintendo_buttons;
+ SDL_bool has_dualshock_touchpad;
+ SDL_bool has_xbox_paddles;
+ SDL_bool has_xbox_share_button;
+ SDL_bool has_nintendo_buttons;
struct joystick_hwdata *next;
} joystick_hwdata;