Check if ROCKBOX_LITTLE_ENDIAN and ROCKBOX_BIG_ENDIAN are defined, no which value they have

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27419 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-14 20:19:44 +00:00
parent 26e70eba26
commit b3fee10175

View file

@ -42,7 +42,7 @@
/* 64 bit multiply */
/* #include <sys/types.h> */
#if ROCKBOX_LITTLE_ENDIAN == 1
#ifdef ROCKBOX_LITTLE_ENDIAN
union magic {
struct {
int32_t lo;
@ -50,7 +50,7 @@ union magic {
} halves;
int64_t whole;
};
#elif ROCKBOX_BIG_ENDIAN == 1
#elif defined(ROCKBOX_BIG_ENDIAN)
union magic {
struct {
int32_t hi;