1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

games/libretro-mame2000: fix build on powerpc64*

src/cpu/tms9900/99xxstat.h:204:14: error: expected identifier or '('
static INT32 asm setst_add_32_laeco(register INT32 a, register INT32 b, register INT16 st)
This commit is contained in:
Piotr Kubaj 2021-04-07 16:29:25 +00:00
parent fd6ed70d1b
commit 8f840633e6
2 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,8 @@ COMMENT= MAME (0.37b5) for libretro
LICENSE= GPLv2
USES= compiler:c++11-lib gmake
USES= compiler:c++11-lib dos2unix gmake
DOS2UNIX_FILES= src/cpu/tms9900/99xxstat.h
USE_LDCONFIG= yes
USE_GITHUB= yes

View File

@ -0,0 +1,11 @@
--- src/cpu/tms9900/99xxstat.h.orig 2021-04-07 16:22:44 UTC
+++ src/cpu/tms9900/99xxstat.h
@@ -192,7 +192,7 @@ static INLINE void setst_c_lae(UINT16 to, UINT16 val)
#define wadd(addr,expr) { int lval = setst_add_laeco(readword(addr), (expr)); writeword((addr),lval); }
#define wsub(addr,expr) { int lval = setst_sub_laeco(readword(addr), (expr)); writeword((addr),lval); }
-#ifdef __POWERPC__
+#if defined(__POWERPC__) && !defined(__powerpc64__)
// setst_add_32_laeco :
// - computes a+b