summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 3216948997..aa95167b8a 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -121,6 +121,8 @@ int get_cpu_boost_counter(void);
121 ptr = (typeof(ptr))tmp_ptr1; \ 121 ptr = (typeof(ptr))tmp_ptr1; \
122} 122}
123 123
124#ifndef __PCTOOL__
125
124/* newer? SDL includes endian.h, So we ignore it */ 126/* newer? SDL includes endian.h, So we ignore it */
125#ifdef SIMULATOR 127#ifdef SIMULATOR
126#undef letoh16 128#undef letoh16
@@ -158,6 +160,8 @@ int get_cpu_boost_counter(void);
158#define swap_odd_even_le32(x) (x) 160#define swap_odd_even_le32(x) (x)
159#endif 161#endif
160 162
163#endif
164
161/* static endianness conversion */ 165/* static endianness conversion */
162#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ 166#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \
163 ((unsigned short)(x) << 8))) 167 ((unsigned short)(x) << 8)))