diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/system.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index ee668c87e4..bbaf5d74df 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -241,9 +241,10 @@ enum { | |||
241 | #include "system-target.h" | 241 | #include "system-target.h" |
242 | #elif defined(HAVE_SDL) /* SDL build */ | 242 | #elif defined(HAVE_SDL) /* SDL build */ |
243 | #include "system-sdl.h" | 243 | #include "system-sdl.h" |
244 | #define NEED_GENERIC_BYTESWAPS | ||
244 | #endif | 245 | #endif |
245 | 246 | ||
246 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) | 247 | #ifdef NEED_GENERIC_BYTESWAPS |
247 | static inline uint16_t swap16(uint16_t value) | 248 | static inline uint16_t swap16(uint16_t value) |
248 | /* | 249 | /* |
249 | result[15..8] = value[ 7..0]; | 250 | result[15..8] = value[ 7..0]; |
@@ -276,7 +277,7 @@ static inline uint32_t swap_odd_even32(uint32_t value) | |||
276 | return (t >> 8) | ((t ^ value) << 8); | 277 | return (t >> 8) | ((t ^ value) << 8); |
277 | } | 278 | } |
278 | 279 | ||
279 | #endif /* PLATFORM_HOSTED */ | 280 | #endif /* NEED_GENERIC_BYTESWAPS */ |
280 | 281 | ||
281 | #ifndef BIT_N | 282 | #ifndef BIT_N |
282 | #define BIT_N(n) (1U << (n)) | 283 | #define BIT_N(n) (1U << (n)) |