libretro.scummvm: fix build with GCC 15

Rename index/rindex functions in bundled libfaad to avoid conflict
with glibc's string.h declarations.
This commit is contained in:
lassulus
2026-01-05 15:39:26 +01:00
parent f31c1a89d9
commit 226ae141f9
@@ -50,6 +50,9 @@ mkLibretroCore {
cp -a ${libretro-deps-src}/* deps/libretro-deps
chmod -R u+w deps/
# Fix conflicts with glibc index/rindex functions
sed -i 's/\bindex\b/faad_index/g; s/\brindex\b/faad_rindex/g' deps/libretro-deps/libfaad/libfaad/common.h
patchShebangs ./scripts/*
'';