summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-01-24 10:16:22 +0000
committerNils Wallménius <nils@rockbox.org>2009-01-24 10:16:22 +0000
commit259116cefc595b2ea99841dea9cf8a2c7999740a (patch)
tree411f321f730fe9a8f7e5207b319faa18e3cffda9
parent9b2fdb7953512760bb004440e4e7ced6b4d7ec05 (diff)
downloadrockbox-259116cefc595b2ea99841dea9cf8a2c7999740a.tar.gz
rockbox-259116cefc595b2ea99841dea9cf8a2c7999740a.zip
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
-rw-r--r--firmware/export/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index cc2a08db2e..fb9dfa3003 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -121,6 +121,18 @@ int get_cpu_boost_counter(void);
121 ptr = (typeof(ptr))tmp_ptr1; \ 121 ptr = (typeof(ptr))tmp_ptr1; \
122} 122}
123 123
124/* newer? SDL includes endian.h, So we ignore it */
125#ifdef SIMULATOR
126#undef letoh16
127#undef letoh32
128#undef htole16
129#undef htole32
130#undef betoh16
131#undef betoh32
132#undef htobe16
133#undef htobe32
134#endif
135
124/* live endianness conversion */ 136/* live endianness conversion */
125#ifdef ROCKBOX_LITTLE_ENDIAN 137#ifdef ROCKBOX_LITTLE_ENDIAN
126#define letoh16(x) (x) 138#define letoh16(x) (x)