From b475355b080bb26c045d7fd283636d6f7bff37c3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 15 Feb 2014 17:14:40 +1100 Subject: [PATCH] Add le16toh defines for platforms that may be missing it. --- miner.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner.h b/miner.h index 908d2981..cd4c243d 100644 --- a/miner.h +++ b/miner.h @@ -159,6 +159,7 @@ static inline int fsync (int fd) #ifndef htobe32 # if __BYTE_ORDER == __LITTLE_ENDIAN # define htole16(x) (x) +# define le16toh(x) (x) # define htole32(x) (x) # define htole64(x) (x) # define le32toh(x) (x) @@ -169,6 +170,7 @@ static inline int fsync (int fd) # define htobe64(x) bswap_64(x) # elif __BYTE_ORDER == __BIG_ENDIAN # define htole16(x) bswap_16(x) +# define le16toh(x) bswap_16(x) # define htole32(x) bswap_32(x) # define le32toh(x) bswap_32(x) # define le64toh(x) bswap_64(x)