diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-14 20:19:44 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-14 20:19:44 +0000 |
commit | b3fee101758dbe1d9ca8cc513dc3a2e85144637e (patch) | |
tree | 242086063ca43c46144ad640d68d35457afbd4b3 /apps/codecs | |
parent | 26e70eba26c3d6a490d7892a5eb8d12a2a646047 (diff) | |
download | rockbox-b3fee101758dbe1d9ca8cc513dc3a2e85144637e.tar.gz rockbox-b3fee101758dbe1d9ca8cc513dc3a2e85144637e.zip |
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
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/lib/codeclib_misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/lib/codeclib_misc.h b/apps/codecs/lib/codeclib_misc.h index 0d560755d7..a393df4183 100644 --- a/apps/codecs/lib/codeclib_misc.h +++ b/apps/codecs/lib/codeclib_misc.h | |||
@@ -42,7 +42,7 @@ | |||
42 | /* 64 bit multiply */ | 42 | /* 64 bit multiply */ |
43 | /* #include <sys/types.h> */ | 43 | /* #include <sys/types.h> */ |
44 | 44 | ||
45 | #if ROCKBOX_LITTLE_ENDIAN == 1 | 45 | #ifdef ROCKBOX_LITTLE_ENDIAN |
46 | union magic { | 46 | union magic { |
47 | struct { | 47 | struct { |
48 | int32_t lo; | 48 | int32_t lo; |
@@ -50,7 +50,7 @@ union magic { | |||
50 | } halves; | 50 | } halves; |
51 | int64_t whole; | 51 | int64_t whole; |
52 | }; | 52 | }; |
53 | #elif ROCKBOX_BIG_ENDIAN == 1 | 53 | #elif defined(ROCKBOX_BIG_ENDIAN) |
54 | union magic { | 54 | union magic { |
55 | struct { | 55 | struct { |
56 | int32_t hi; | 56 | int32_t hi; |