1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

define le32toh if needed

This commit is contained in:
James Z.M. Gao 2013-04-19 09:13:36 +08:00
parent 5ba07b9a03
commit 7ada22a4e6

View File

@ -156,6 +156,7 @@ static inline int fsync (int fd)
# if __BYTE_ORDER == __LITTLE_ENDIAN # if __BYTE_ORDER == __LITTLE_ENDIAN
# define htole16(x) (x) # define htole16(x) (x)
# define htole32(x) (x) # define htole32(x) (x)
# define le32toh(x) (x)
# define be32toh(x) bswap_32(x) # define be32toh(x) bswap_32(x)
# define be64toh(x) bswap_64(x) # define be64toh(x) bswap_64(x)
# define htobe32(x) bswap_32(x) # define htobe32(x) bswap_32(x)
@ -163,6 +164,7 @@ static inline int fsync (int fd)
# elif __BYTE_ORDER == __BIG_ENDIAN # elif __BYTE_ORDER == __BIG_ENDIAN
# define htole16(x) bswap_16(x) # define htole16(x) bswap_16(x)
# define htole32(x) bswap_32(x) # define htole32(x) bswap_32(x)
# define le32toh(x) bswap_32(x)
# define be32toh(x) (x) # define be32toh(x) (x)
# define be64toh(x) (x) # define be64toh(x) (x)
# define htobe32(x) (x) # define htobe32(x) (x)