summaryrefslogtreecommitdiffstats
path: root/firmware/include
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2019-07-07 22:02:28 -0400
committerFranklin Wei <git@fwei.tk>2019-07-09 11:20:55 -0400
commit439a0d1d91fa040d261fc39b87278bc9f5391dcc (patch)
treea9c21f9fce27ad1f636e5436575ed7fb5fa349a5 /firmware/include
parentc2411f785cd391134f5acdd59caf9c4941ca1ec9 (diff)
downloadrockbox-439a0d1d91fa040d261fc39b87278bc9f5391dcc.tar.gz
rockbox-439a0d1d91fa040d261fc39b87278bc9f5391dcc.tar.bz2
rockbox-439a0d1d91fa040d261fc39b87278bc9f5391dcc.zip
rbendian.h: fall back to generic swap macros
Change-Id: If85086c0fd6b22d50759b16d2545e1798832d12c
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/rbendian.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/include/rbendian.h b/firmware/include/rbendian.h
index 7b666eca56..8adcb544f9 100644
--- a/firmware/include/rbendian.h
+++ b/firmware/include/rbendian.h
@@ -95,13 +95,11 @@
#define __swap16_os(x) swap16(x)
#define __swap32_os(x) swap32(x)
#define __swap64_os(x) swap64(x)
-#elif defined (__MINGW32__) || (CONFIG_PLATFORM & PLATFORM_MAEMO)
+#else
/* kinda hacky but works */
#define __swap16_os(x) SWAP16_CONST(x)
#define __swap32_os(x) SWAP32_CONST(x)
#define __swap64_os(x) SWAP64_CONST(x)
-#else
- #error "Missing OS swap defines."
#endif
/* wrap these because they aren't always compatible with compound initializers */