summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2014-12-17 23:29:44 +0100
committerThomas Jarosch <tomj@simonv.com>2014-12-17 23:29:44 +0100
commit3add6c743580ed9d7599758d29efcf99a6700b43 (patch)
tree543aed9bf72533e90b1e2b61007173ce18f4c16b /firmware/include
parent5dab7688380fdb2beccaca47091ebcc85042fab6 (diff)
downloadrockbox-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
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/rbendian.h2
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)