diff options
| -rw-r--r-- | include/endianness.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/endianness.h b/include/endianness.h index 585e768..2d6ad0e 100644 --- a/include/endianness.h +++ b/include/endianness.h | |||
| @@ -27,6 +27,10 @@ | |||
| 27 | #endif | 27 | #endif |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| 30 | #ifndef htobe16 | ||
| 31 | #define htobe16 be16toh | ||
| 32 | #endif | ||
| 33 | |||
| 30 | #ifndef __bswap_32 | 34 | #ifndef __bswap_32 |
| 31 | #define __bswap_32(x) ((((x) & 0xFF000000) >> 24) \ | 35 | #define __bswap_32(x) ((((x) & 0xFF000000) >> 24) \ |
| 32 | | (((x) & 0x00FF0000) >> 8) \ | 36 | | (((x) & 0x00FF0000) >> 8) \ |
