diff --git a/configuration.c b/configuration.c index b661bb67ff..3ebfd1340d 100644 --- a/configuration.c +++ b/configuration.c @@ -2882,7 +2882,7 @@ void config_set_defaults(void *data) #if IOS configuration_set_bool(settings, - settings->bools.accessibility_enable, UIAccessibilityIsVoiceOverRunning()); + settings->bools.accessibility_enable, RAIsVoiceOverRunning()); #endif #ifdef HAVE_MENU diff --git a/ui/drivers/cocoa/apple_platform.h b/ui/drivers/cocoa/apple_platform.h index 7c27dbac94..72316c79e3 100644 --- a/ui/drivers/cocoa/apple_platform.h +++ b/ui/drivers/cocoa/apple_platform.h @@ -3,7 +3,7 @@ #if TARGET_OS_IPHONE /* this comes from UIKit but you cannot #include UIKit from C */ -extern bool UIAccessibilityIsVoiceOverRunning(void); +extern bool RAIsVoiceOverRunning(void); #endif #if TARGET_OS_TV diff --git a/ui/drivers/cocoa/cocoa_common.m b/ui/drivers/cocoa/cocoa_common.m index 6ac104c817..f82d995dfb 100644 --- a/ui/drivers/cocoa/cocoa_common.m +++ b/ui/drivers/cocoa/cocoa_common.m @@ -56,6 +56,14 @@ #include "../../menu/menu_driver.h" #endif +#if IOS +#import +extern bool RAIsVoiceOverRunning(void) +{ + return UIAccessibilityIsVoiceOverRunning(); +} +#endif + #if defined(HAVE_COCOA_METAL) || defined(HAVE_COCOATOUCH) id apple_platform; #else