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:
Thomas Jarosch 2014-12-17 23:29:44 +01:00
parent 5dab768838
commit 3add6c7435
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@
#define __swap16_os(x) __swap16(x)
#define __swap32_os(x) __swap32(x)
#define __swap64_os(x) __swap64(x)
#elif defined (__MINGW32__)
#elif defined (__MINGW32__) || (CONFIG_PLATFORM & PLATFORM_MAEMO)
/* kinda hacky but works */
#define __swap16_os(x) SWAP16_CONST(x)
#define __swap32_os(x) SWAP32_CONST(x)