aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
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 ------------------------------------ */