Commit 226ae141 authored by lassulus's avatar lassulus
Browse files

libretro.scummvm: fix build with GCC 15

Rename index/rindex functions in bundled libfaad to avoid conflict
with glibc's string.h declarations.
parent f31c1a89
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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/*
  '';