diff options
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 85efa53cd..c255a17ce 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -197,6 +197,8 @@ | |||
197 | # define SWAP_LE16(x) bswap_16(x) | 197 | # define SWAP_LE16(x) bswap_16(x) |
198 | # define SWAP_LE32(x) bswap_32(x) | 198 | # define SWAP_LE32(x) bswap_32(x) |
199 | # define SWAP_LE64(x) bswap_64(x) | 199 | # define SWAP_LE64(x) bswap_64(x) |
200 | # define IF_BIG_ENDIAN(...) __VA_ARGS__ | ||
201 | # define IF_LITTLE_ENDIAN(...) | ||
200 | #else | 202 | #else |
201 | # define SWAP_BE16(x) bswap_16(x) | 203 | # define SWAP_BE16(x) bswap_16(x) |
202 | # define SWAP_BE32(x) bswap_32(x) | 204 | # define SWAP_BE32(x) bswap_32(x) |
@@ -204,6 +206,8 @@ | |||
204 | # define SWAP_LE16(x) (x) | 206 | # define SWAP_LE16(x) (x) |
205 | # define SWAP_LE32(x) (x) | 207 | # define SWAP_LE32(x) (x) |
206 | # define SWAP_LE64(x) (x) | 208 | # define SWAP_LE64(x) (x) |
209 | # define IF_BIG_ENDIAN(...) | ||
210 | # define IF_LITTLE_ENDIAN(...) __VA_ARGS__ | ||
207 | #endif | 211 | #endif |
208 | 212 | ||
209 | /* ---- Unaligned access ------------------------------------ */ | 213 | /* ---- Unaligned access ------------------------------------ */ |