mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
rbendian.h: fall back to generic swap macros
Change-Id: If85086c0fd6b22d50759b16d2545e1798832d12c
This commit is contained in:
parent
c2411f785c
commit
439a0d1d91
1 changed files with 1 additions and 3 deletions
|
@ -95,13 +95,11 @@
|
||||||
#define __swap16_os(x) swap16(x)
|
#define __swap16_os(x) swap16(x)
|
||||||
#define __swap32_os(x) swap32(x)
|
#define __swap32_os(x) swap32(x)
|
||||||
#define __swap64_os(x) swap64(x)
|
#define __swap64_os(x) swap64(x)
|
||||||
#elif defined (__MINGW32__) || (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
#else
|
||||||
/* kinda hacky but works */
|
/* kinda hacky but works */
|
||||||
#define __swap16_os(x) SWAP16_CONST(x)
|
#define __swap16_os(x) SWAP16_CONST(x)
|
||||||
#define __swap32_os(x) SWAP32_CONST(x)
|
#define __swap32_os(x) SWAP32_CONST(x)
|
||||||
#define __swap64_os(x) SWAP64_CONST(x)
|
#define __swap64_os(x) SWAP64_CONST(x)
|
||||||
#else
|
|
||||||
#error "Missing OS swap defines."
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* wrap these because they aren't always compatible with compound initializers */
|
/* wrap these because they aren't always compatible with compound initializers */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue