From 7ada22a4e6600f8a945c96aec8128fbd3213cdad Mon Sep 17 00:00:00 2001 From: "James Z.M. Gao" Date: Fri, 19 Apr 2013 09:13:36 +0800 Subject: [PATCH] define le32toh if needed --- miner.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner.h b/miner.h index c992cce2..6345d718 100644 --- a/miner.h +++ b/miner.h @@ -156,6 +156,7 @@ static inline int fsync (int fd) # if __BYTE_ORDER == __LITTLE_ENDIAN # define htole16(x) (x) # define htole32(x) (x) +# define le32toh(x) (x) # define be32toh(x) bswap_32(x) # define be64toh(x) bswap_64(x) # define htobe32(x) bswap_32(x) @@ -163,6 +164,7 @@ static inline int fsync (int fd) # elif __BYTE_ORDER == __BIG_ENDIAN # define htole16(x) bswap_16(x) # define htole32(x) bswap_32(x) +# define le32toh(x) bswap_32(x) # define be32toh(x) (x) # define be64toh(x) (x) # define htobe32(x) (x)