mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
MAKE_INT_8 fails on GCC/ARM (#8285)
spc700.cpp: Use int8_t instead of old MAKE_INT_8 macro
This commit is contained in:
parent
2aed6158b8
commit
6bd25a62c6
@ -74,17 +74,7 @@ Address Function Register R/W When Reset Remarks
|
||||
/* ==================== ARCHITECTURE-DEPENDANT DEFINES ==================== */
|
||||
/* ======================================================================== */
|
||||
|
||||
#undef int8
|
||||
|
||||
/* Allow for architectures that don't have 8-bit sizes */
|
||||
#if UCHAR_MAX == 0xff
|
||||
#define int8 char
|
||||
#define MAKE_INT_8(A) (int8)((A)&0xff)
|
||||
#else
|
||||
#define int8 int
|
||||
static inline int MAKE_INT_8(int A) {return (A & 0x80) ? A | ~0xff : A & 0xff;}
|
||||
#endif /* UCHAR_MAX == 0xff */
|
||||
|
||||
#define MAKE_INT_8(A) (int8_t)((A)&0xff)
|
||||
#define MAKE_UINT_8(A) ((A)&0xff)
|
||||
#define MAKE_UINT_16(A) ((A)&0xffff)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user