- Fix building on non-i386 with GCC 4.2 (on i386 assembly code is used).

Reported by:	pav
This commit is contained in:
Alejandro Pulver 2007-07-22 16:58:39 +00:00
parent d0352c756c
commit 729706683f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196063

View File

@ -0,0 +1,20 @@
--- cmz80/z80.c.orig Mon Oct 29 20:07:24 2001
+++ cmz80/z80.c Sun Jul 22 13:54:12 2007
@@ -633,7 +633,7 @@
#endif
}
-/* inline */ static BYTE Inc(BYTE bArg)
+/* inline */ BYTE Inc(BYTE bArg)
{
#ifdef ARITH_TABLES
bArg++;
@@ -646,7 +646,7 @@
#endif
}
-/* inline */ static BYTE Dec(BYTE bArg)
+/* inline */ BYTE Dec(BYTE bArg)
{
#ifdef ARITH_TABLES
m_regF = (m_regF & C_FLAG) | rgfDec[bArg--];