1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-01-29 06:43:44 +00:00
parent 9aac529208
commit 4625aa2f33

View file

@ -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) | \