From d734a163709c3ead9966bb912e73ed2d0be4cc73 Mon Sep 17 00:00:00 2001 From: pkubaj Date: Tue, 25 Aug 2020 11:39:50 +0000 Subject: [PATCH] MFH: r546155 games/libretro-uae: fix build on powerpc* ifdef powerpc needs to be added to prevent compiling code with bad assembly. Approved by: portmgr (fix build blanket) --- .../files/patch-sources_src_machdep_m68kops.h | 11 +++++++++++ .../files/patch-sources_src_machdep_maccess.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 games/libretro-uae/files/patch-sources_src_machdep_m68kops.h create mode 100644 games/libretro-uae/files/patch-sources_src_machdep_maccess.h diff --git a/games/libretro-uae/files/patch-sources_src_machdep_m68kops.h b/games/libretro-uae/files/patch-sources_src_machdep_m68kops.h new file mode 100644 index 000000000000..bcf1c4f63c31 --- /dev/null +++ b/games/libretro-uae/files/patch-sources_src_machdep_m68kops.h @@ -0,0 +1,11 @@ +--- sources/src/machdep/m68kops.h.orig 2020-08-25 11:26:10 UTC ++++ sources/src/machdep/m68kops.h +@@ -11,7 +11,7 @@ + + #ifndef ANDROID + +-#if defined(__CELLOS_LV2__) || defined(_WIN32) || defined(__x86_64__) || defined(ARM) || defined(WIIU) ++#if defined(__CELLOS_LV2__) || defined(_WIN32) || defined(__x86_64__) || defined(ARM) || defined(WIIU) || defined(__powerpc__) + + #ifdef WIIU + #define FLAGBIT_N 31 diff --git a/games/libretro-uae/files/patch-sources_src_machdep_maccess.h b/games/libretro-uae/files/patch-sources_src_machdep_maccess.h new file mode 100644 index 000000000000..4c35ab681402 --- /dev/null +++ b/games/libretro-uae/files/patch-sources_src_machdep_maccess.h @@ -0,0 +1,11 @@ +--- sources/src/machdep/maccess.h.orig 2020-08-25 11:25:48 UTC ++++ sources/src/machdep/maccess.h +@@ -6,7 +6,7 @@ + * Copyright 1996 Bernd Schmidt + */ + +-#if defined(__CELLOS_LV2__) || defined(WIIU) ++#if defined(__CELLOS_LV2__) || defined(WIIU) || defined(__powerpc__) + + STATIC_INLINE uae_u32 do_get_mem_long (uae_u32 *a) + {