diff options
author | Potin Lai | 2022-03-31 08:44:31 +0800 |
---|---|---|
committer | Nikias Bassen | 2022-04-01 00:46:50 +0200 |
commit | 17a2b964ca9c94f6615994ba2179bf4228e31236 (patch) | |
tree | a460143f1d681d3be88de23bb2e03aaa929813aa /include/endianness.h | |
parent | 5950ea6d4139394c38c7bdc445725d04113c1fee (diff) | |
download | libimobiledevice-glue-17a2b964ca9c94f6615994ba2179bf4228e31236.tar.gz libimobiledevice-glue-17a2b964ca9c94f6615994ba2179bf4228e31236.tar.bz2 |
Fix undefined bswap32 and bswap64 for MIPS machine
Replace bswap32 and bswap64 with internal defined version (__bswap_X)
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Diffstat (limited to 'include/endianness.h')
-rw-r--r-- | include/endianness.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/endianness.h b/include/endianness.h index 099877a..88b63db 100644 --- a/include/endianness.h +++ b/include/endianness.h @@ -113,8 +113,8 @@ && !defined(__FLOAT_WORD_ORDER__)) \ || (defined(__FLOAT_WORD_ORDER__) \ && __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__) -#define float_bswap64(x) bswap64(x) -#define float_bswap32(x) bswap32(x) +#define float_bswap64(x) __bswap_64(x) +#define float_bswap32(x) __bswap_32(x) #else #define float_bswap64(x) (x) #define float_bswap32(x) (x) |