From 518d719f383370cdb2135053939561deb055006b Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Wed, 21 Aug 2024 15:57:02 -0400 Subject: [PATCH] Fix a build error on iOS (#16903) - Includes certain newly-required headers - Makes the use of the `IOS` macro consistent with other platform checks --- libretro-common/dynamic/dylib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-common/dynamic/dylib.c b/libretro-common/dynamic/dylib.c index 673233f9af..dfc1c066bb 100644 --- a/libretro-common/dynamic/dylib.c +++ b/libretro-common/dynamic/dylib.c @@ -24,6 +24,9 @@ #include #include #include +#include +#include +#include #if defined(ORBIS) #include @@ -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))