Another ios9 buildfix

This commit is contained in:
Eric Warmenhoven 2024-05-23 17:53:50 -04:00 committed by LibretroAdmin
parent 3e85a17d7a
commit 07a03811a2
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -56,6 +56,14 @@
#include "../../menu/menu_driver.h"
#endif
#if IOS
#import <UIKit/UIAccessibility.h>
extern bool RAIsVoiceOverRunning(void)
{
return UIAccessibilityIsVoiceOverRunning();
}
#endif
#if defined(HAVE_COCOA_METAL) || defined(HAVE_COCOATOUCH)
id<ApplePlatform> apple_platform;
#else