Fix a build error on iOS (#16903)

- Includes certain newly-required headers
- Makes the use of the `IOS` macro consistent with other platform checks
This commit is contained in:
Jesse Talavera 2024-08-21 15:57:02 -04:00 committed by GitHub
parent fa0e6cc3ff
commit 518d719f38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
#include <stdio.h>
#include <dynamic/dylib.h>
#include <encodings/utf.h>
#include <string/stdstring.h>
#include <retro_miscellaneous.h>
#include <file/file_path.h>
#if defined(ORBIS)
#include <orbis/libkernel.h>
@ -127,7 +130,7 @@ dylib_t dylib_load(const char *path)
#elif defined(ORBIS)
int res;
dylib_t lib = (dylib_t)sceKernelLoadStartModule(path, 0, NULL, 0, NULL, &res);
#elif IOS
#elif defined(IOS)
dylib_t lib;
static const char fw_suffix[] = ".framework";
if (string_ends_with(path, fw_suffix))