aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-01-04 19:40:30 +0700
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-01-04 19:40:30 +0700
commit3b5c308768d76298bb964814ecc34de47bcac0b4 (patch)
tree795340e9d8f5e5bf9e8d895641099af343eec2a0 /include/platform.h
parent2b9a0e715ec459198f486653023d963b79291da7 (diff)
parent5fe2f863b9cee5ab0e7ac873538bce48846dbad8 (diff)
downloadbusybox-w32-3b5c308768d76298bb964814ecc34de47bcac0b4.tar.gz
busybox-w32-3b5c308768d76298bb964814ecc34de47bcac0b4.tar.bz2
busybox-w32-3b5c308768d76298bb964814ecc34de47bcac0b4.zip
Merge commit '06f719fd79fe15ce6fd5431bc58fcb22851de24d^'
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 2b3ad42bd..ed8c137e1 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -215,6 +215,8 @@
215# define SWAP_LE16(x) bswap_16(x) 215# define SWAP_LE16(x) bswap_16(x)
216# define SWAP_LE32(x) bswap_32(x) 216# define SWAP_LE32(x) bswap_32(x)
217# define SWAP_LE64(x) bswap_64(x) 217# define SWAP_LE64(x) bswap_64(x)
218# define IF_BIG_ENDIAN(...) __VA_ARGS__
219# define IF_LITTLE_ENDIAN(...)
218#else 220#else
219# define SWAP_BE16(x) bswap_16(x) 221# define SWAP_BE16(x) bswap_16(x)
220# define SWAP_BE32(x) bswap_32(x) 222# define SWAP_BE32(x) bswap_32(x)
@@ -222,6 +224,8 @@
222# define SWAP_LE16(x) (x) 224# define SWAP_LE16(x) (x)
223# define SWAP_LE32(x) (x) 225# define SWAP_LE32(x) (x)
224# define SWAP_LE64(x) (x) 226# define SWAP_LE64(x) (x)
227# define IF_BIG_ENDIAN(...)
228# define IF_LITTLE_ENDIAN(...) __VA_ARGS__
225#endif 229#endif
226 230
227/* ---- Unaligned access ------------------------------------ */ 231/* ---- Unaligned access ------------------------------------ */