diff --git a/src/portable_endian.h b/src/portable_endian.h index 42d40be..ba56f64 100644 --- a/src/portable_endian.h +++ b/src/portable_endian.h @@ -42,6 +42,15 @@ # include +# define be16toh(x) betoh16(x) +# define le16toh(x) letoh16(x) + +# define be32toh(x) betoh32(x) +# define le32toh(x) letoh32(x) + +# define be64toh(x) betoh64(x) +# define le64toh(x) letoh64(x) + #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) # include @@ -112,4 +121,4 @@ #endif -#endif \ No newline at end of file +#endif