diff options
-rw-r--r-- | include/compat/endian.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/endian.h b/include/compat/endian.h index 5376c1a..2e4c8f7 100644 --- a/include/compat/endian.h +++ b/include/compat/endian.h | |||
@@ -101,6 +101,8 @@ | |||
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | #define htobe64(x) ntohll((x)) | 103 | #define htobe64(x) ntohll((x)) |
104 | #define htole64(x) (x) | ||
105 | #define le64toh(x) (x) | ||
104 | #endif /* _WIN32 && !HAVE_ENDIAN_H */ | 106 | #endif /* _WIN32 && !HAVE_ENDIAN_H */ |
105 | 107 | ||
106 | #ifdef __linux__ | 108 | #ifdef __linux__ |
@@ -151,6 +153,8 @@ | |||
151 | #define htole32(x) LE_32(x) | 153 | #define htole32(x) LE_32(x) |
152 | #define htobe32(x) BE_32(x) | 154 | #define htobe32(x) BE_32(x) |
153 | #define be64toh(x) BE_64(x) | 155 | #define be64toh(x) BE_64(x) |
156 | #define le64toh(x) LE_64(x) | ||
157 | #define htole64(x) LE_64(x) | ||
154 | #define htobe64(x) BE_64(x) | 158 | #define htobe64(x) BE_64(x) |
155 | #endif | 159 | #endif |
156 | 160 | ||