summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-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)