From 3db3f2455ffd3d8c0facc85e635e9781b1fe11da Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sat, 20 Jan 2024 19:53:57 +0000 Subject: [PATCH] libretro.mupen64-plus: fix build under GCC 13 --- pkgs/applications/emulators/retroarch/cores.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index 185187a9e3b0..c9f97b61e680 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -653,6 +653,11 @@ in "LLE=1" "WITH_DYNAREC=${stdenv.hostPlatform.parsed.cpu.name}" ]; + # This CXXFLAGS hack works around the GCC 13 error: + # 'uint32_t' was not declared in this scope + # It can be removed if the issue filed upstream is resolved: + # https://github.com/libretro/mupen64plus-libretro-nx/issues/515 + env.CXXFLAGS = "-include cstdint"; meta = { description = "Libretro port of Mupen64 Plus, GL only"; license = lib.licenses.gpl3Only;