mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix up maemo port after byte swap header refactoring
Turns out maemo's old gcc 4.2.1 doesn't include any arch optimized swapXX() functions, just plain C implementations. Before we pull in lots of linux kernel headers for the C implementation, just stick to rockbox's own version. Change-Id: Ic28b41b52fe47f814c7f3897ce15334a42b6c5e2
This commit is contained in:
parent
5dab768838
commit
3add6c7435
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@
|
||||||
#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__)
|
#elif defined (__MINGW32__) || (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
||||||
/* 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue