diff options
| author | Brent Cook <busterb@gmail.com> | 2023-08-16 05:20:48 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-08-16 05:20:48 -0500 |
| commit | 29159e34e39e0ac337526560f954d3b1d39cb32b (patch) | |
| tree | 66ec3ec2da6305997ce92c628f104cc16b85ddeb /include | |
| parent | 3c49cfb3447f61ced5bb64e8a23cc5abd4e84a2b (diff) | |
| download | portable-29159e34e39e0ac337526560f954d3b1d39cb32b.tar.gz portable-29159e34e39e0ac337526560f954d3b1d39cb32b.tar.bz2 portable-29159e34e39e0ac337526560f954d3b1d39cb32b.zip | |
add htole32/le32toh for Solaris
Diffstat (limited to 'include')
| -rw-r--r-- | include/compat/endian.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/endian.h b/include/compat/endian.h index 0945ece..3d55994 100644 --- a/include/compat/endian.h +++ b/include/compat/endian.h | |||
| @@ -132,8 +132,10 @@ | |||
| 132 | #define be16toh(x) BE_IN16(x) | 132 | #define be16toh(x) BE_IN16(x) |
| 133 | #define betoh16(x) BE_IN16(x) | 133 | #define betoh16(x) BE_IN16(x) |
| 134 | #define htobe16(x) BE_16(x) | 134 | #define htobe16(x) BE_16(x) |
| 135 | #define le32toh(x) LE_IN32(x) | ||
| 135 | #define be32toh(x) BE_IN32(x) | 136 | #define be32toh(x) BE_IN32(x) |
| 136 | #define betoh32(x) BE_IN32(x) | 137 | #define betoh32(x) BE_IN32(x) |
| 138 | #define htole32(x) LE_32(x) | ||
| 137 | #define htobe32(x) BE_32(x) | 139 | #define htobe32(x) BE_32(x) |
| 138 | #define be64toh(x) BE_IN64(x) | 140 | #define be64toh(x) BE_IN64(x) |
| 139 | #define betoh64(x) BE_IN64(x) | 141 | #define betoh64(x) BE_IN64(x) |
