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:46:08 +00:00
parent 144bb249fc
commit bc1f29459a
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= libretro-mame2000
PORTVERSION= 0.20210214
CATEGORIES= games
@ -8,7 +8,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