summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/include/rbendian.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/include/rbendian.h b/firmware/include/rbendian.h
index 0c03ce6c09..dbb6d4e822 100644
--- a/firmware/include/rbendian.h
+++ b/firmware/include/rbendian.h
@@ -79,10 +79,18 @@
#define __swap16_os(x) __bswap_16(x)
#define __swap32_os(x) __bswap_32(x)
#define __swap64_os(x) __bswap_64(x)
+#elif defined (bswap_16)
+ #define __swap16_os(x) bswap_16(x)
+ #define __swap32_os(x) bswap_32(x)
+ #define __swap64_os(x) bswap_64(x)
#elif defined (__swap16)
#define __swap16_os(x) __swap16(x)
#define __swap32_os(x) __swap32(x)
#define __swap64_os(x) __swap64(x)
+#elif defined (swap16)
+ #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)
/* kinda hacky but works */
#define __swap16_os(x) SWAP16_CONST(x)