From 4625aa2f335b244ea0eb6db7d708a773625e4865 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 29 Jan 2005 06:43:44 +0000 Subject: 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 --- apps/dbtree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps') 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 @@ #include "lang.h" #include "keyboard.h" -#if defined(LITTLE_ENDIAN) || defined(_X86_) +/* workaround for cygwin not defining endian macros */ +#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN) && defined(_X86_) +#define LITTLE_ENDIAN +#endif + +#ifdef LITTLE_ENDIAN #define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ ((_x_ & 0x00ff0000) >> 8) | \ ((_x_ & 0x0000ff00) << 8) | \ -- cgit v1.2.3