forked from len0rd/rockbox
libgme: fix badly written cpp conditions spotted by gcc 4.6.3
Change-Id: Ia3fba4ba2c46a202c48f3a9b7db0cba9f75b6a50
This commit is contained in:
parent
04fb4b77ac
commit
41b6ac6afb
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ int const c10 = 0x10; // cz
|
|||
|
||||
#ifdef BLARGG_BIG_ENDIAN
|
||||
#define R8( n ) (reg.r8_ [n])
|
||||
#elif BLARGG_LITTLE_ENDIAN
|
||||
#elif defined(BLARGG_LITTLE_ENDIAN)
|
||||
#define R8( n ) (reg.r8_ [(n) ^ 1])
|
||||
#else
|
||||
// Be sure "blargg_endian.h" has been #included in the file that #includes this
|
||||
|
|
|
@ -131,7 +131,7 @@ int const C01 = 0x01;
|
|||
|
||||
#ifdef BLARGG_BIG_ENDIAN
|
||||
#define R8( n, offset ) ((r.r8_ - offset) [n])
|
||||
#elif BLARGG_LITTLE_ENDIAN
|
||||
#elif defined(BLARGG_LITTLE_ENDIAN)
|
||||
#define R8( n, offset ) ((r.r8_ - offset) [(n) ^ 1])
|
||||
#else
|
||||
#error "Byte order of CPU must be known"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue