1
0
Fork 0
forked from len0rd/rockbox

libgme: fix badly written cpp conditions spotted by gcc 4.6.3

Change-Id: Ia3fba4ba2c46a202c48f3a9b7db0cba9f75b6a50
This commit is contained in:
Marcin Bukat 2012-10-18 13:40:08 +02:00
parent 04fb4b77ac
commit 41b6ac6afb
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ int const c10 = 0x10; // cz
#ifdef BLARGG_BIG_ENDIAN #ifdef BLARGG_BIG_ENDIAN
#define R8( n ) (reg.r8_ [n]) #define R8( n ) (reg.r8_ [n])
#elif BLARGG_LITTLE_ENDIAN #elif defined(BLARGG_LITTLE_ENDIAN)
#define R8( n ) (reg.r8_ [(n) ^ 1]) #define R8( n ) (reg.r8_ [(n) ^ 1])
#else #else
// Be sure "blargg_endian.h" has been #included in the file that #includes this // Be sure "blargg_endian.h" has been #included in the file that #includes this

View file

@ -131,7 +131,7 @@ int const C01 = 0x01;
#ifdef BLARGG_BIG_ENDIAN #ifdef BLARGG_BIG_ENDIAN
#define R8( n, offset ) ((r.r8_ - offset) [n]) #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]) #define R8( n, offset ) ((r.r8_ - offset) [(n) ^ 1])
#else #else
#error "Byte order of CPU must be known" #error "Byte order of CPU must be known"