mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Accept FS#9717 by Akio Idehara with a small change suggested by Rafaël Carré avoiding simulator warnings about redefining endianness switching macros
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19843 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9b2fdb7953
commit
259116cefc
1 changed files with 12 additions and 0 deletions
|
|
@ -121,6 +121,18 @@ int get_cpu_boost_counter(void);
|
|||
ptr = (typeof(ptr))tmp_ptr1; \
|
||||
}
|
||||
|
||||
/* newer? SDL includes endian.h, So we ignore it */
|
||||
#ifdef SIMULATOR
|
||||
#undef letoh16
|
||||
#undef letoh32
|
||||
#undef htole16
|
||||
#undef htole32
|
||||
#undef betoh16
|
||||
#undef betoh32
|
||||
#undef htobe16
|
||||
#undef htobe32
|
||||
#endif
|
||||
|
||||
/* live endianness conversion */
|
||||
#ifdef ROCKBOX_LITTLE_ENDIAN
|
||||
#define letoh16(x) (x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue