diff options
author | Thomas Jarosch <tomj@simonv.com> | 2014-12-17 23:29:44 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2014-12-17 23:29:44 +0100 |
commit | 3add6c743580ed9d7599758d29efcf99a6700b43 (patch) | |
tree | 543aed9bf72533e90b1e2b61007173ce18f4c16b | |
parent | 5dab7688380fdb2beccaca47091ebcc85042fab6 (diff) | |
download | rockbox-3add6c743580ed9d7599758d29efcf99a6700b43.tar.gz rockbox-3add6c743580ed9d7599758d29efcf99a6700b43.zip |
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
-rw-r--r-- | firmware/include/rbendian.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/rbendian.h b/firmware/include/rbendian.h index 861db7d082..0c03ce6c09 100644 --- a/firmware/include/rbendian.h +++ b/firmware/include/rbendian.h | |||
@@ -83,7 +83,7 @@ | |||
83 | #define __swap16_os(x) __swap16(x) | 83 | #define __swap16_os(x) __swap16(x) |
84 | #define __swap32_os(x) __swap32(x) | 84 | #define __swap32_os(x) __swap32(x) |
85 | #define __swap64_os(x) __swap64(x) | 85 | #define __swap64_os(x) __swap64(x) |
86 | #elif defined (__MINGW32__) | 86 | #elif defined (__MINGW32__) || (CONFIG_PLATFORM & PLATFORM_MAEMO) |
87 | /* kinda hacky but works */ | 87 | /* kinda hacky but works */ |
88 | #define __swap16_os(x) SWAP16_CONST(x) | 88 | #define __swap16_os(x) SWAP16_CONST(x) |
89 | #define __swap32_os(x) SWAP32_CONST(x) | 89 | #define __swap32_os(x) SWAP32_CONST(x) |