forked from len0rd/rockbox
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:
parent
26e70eba26
commit
b3fee10175
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
||||||
/* 64 bit multiply */
|
/* 64 bit multiply */
|
||||||
/* #include <sys/types.h> */
|
/* #include <sys/types.h> */
|
||||||
|
|
||||||
#if ROCKBOX_LITTLE_ENDIAN == 1
|
#ifdef ROCKBOX_LITTLE_ENDIAN
|
||||||
union magic {
|
union magic {
|
||||||
struct {
|
struct {
|
||||||
int32_t lo;
|
int32_t lo;
|
||||||
|
@ -50,7 +50,7 @@ union magic {
|
||||||
} halves;
|
} halves;
|
||||||
int64_t whole;
|
int64_t whole;
|
||||||
};
|
};
|
||||||
#elif ROCKBOX_BIG_ENDIAN == 1
|
#elif defined(ROCKBOX_BIG_ENDIAN)
|
||||||
union magic {
|
union magic {
|
||||||
struct {
|
struct {
|
||||||
int32_t hi;
|
int32_t hi;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue