mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Fix wrong byteswap macro being used on mingw32 which was breaking target generation on stratum.
This commit is contained in:
parent
a977fa4766
commit
d15c70f8a8
2
miner.h
2
miner.h
@ -145,7 +145,7 @@ static inline int fsync (int fd)
|
|||||||
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
# define be32toh(x) bswap_32(x)
|
# define be32toh(x) bswap_32(x)
|
||||||
# define htobe32(x) bswap_32(x)
|
# define htobe32(x) bswap_32(x)
|
||||||
# define htobe64(x) bswap_32(x)
|
# define htobe64(x) bswap_64(x)
|
||||||
# elif __BYTE_ORDER == __BIG_ENDIAN
|
# elif __BYTE_ORDER == __BIG_ENDIAN
|
||||||
# define be32toh(x) (x)
|
# define be32toh(x) (x)
|
||||||
# define htobe32(x) (x)
|
# define htobe32(x) (x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user