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:
parent
9aac529208
commit
4625aa2f33
1 changed files with 6 additions and 1 deletions
|
|
@ -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) | \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue