diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-29 06:43:44 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-29 06:43:44 +0000 |
commit | 4625aa2f335b244ea0eb6db7d708a773625e4865 (patch) | |
tree | 521d298f4badb65414c0dd25fb1c65a94797648b | |
parent | 9aac5292084adc09d366a26bf6d7db1d857bec73 (diff) | |
download | rockbox-4625aa2f335b244ea0eb6db7d708a773625e4865.tar.gz rockbox-4625aa2f335b244ea0eb6db7d708a773625e4865.zip |
Proper workaround for cygwin not defining LITTLE_ENDIAN. This is needed in more than one place in the source.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5707 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/dbtree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dbtree.c b/apps/dbtree.c index 68519395e7..ef8d2e5628 100644 --- a/apps/dbtree.c +++ b/apps/dbtree.c | |||
@@ -43,7 +43,12 @@ | |||
43 | #include "lang.h" | 43 | #include "lang.h" |
44 | #include "keyboard.h" | 44 | #include "keyboard.h" |
45 | 45 | ||
46 | #if defined(LITTLE_ENDIAN) || defined(_X86_) | 46 | /* workaround for cygwin not defining endian macros */ |
47 | #if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN) && defined(_X86_) | ||
48 | #define LITTLE_ENDIAN | ||
49 | #endif | ||
50 | |||
51 | #ifdef LITTLE_ENDIAN | ||
47 | #define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ | 52 | #define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ |
48 | ((_x_ & 0x00ff0000) >> 8) | \ | 53 | ((_x_ & 0x00ff0000) >> 8) | \ |
49 | ((_x_ & 0x0000ff00) << 8) | \ | 54 | ((_x_ & 0x0000ff00) << 8) | \ |