Add le64toh to compat.h for bladerf support on osx
This commit is contained in:
parent
1174841f71
commit
799b568dfb
|
|
@ -17,6 +17,7 @@
|
||||||
# include <machine/endian.h>
|
# include <machine/endian.h>
|
||||||
# define le16toh(x) OSSwapLittleToHostInt16(x)
|
# define le16toh(x) OSSwapLittleToHostInt16(x)
|
||||||
# define le32toh(x) OSSwapLittleToHostInt32(x)
|
# define le32toh(x) OSSwapLittleToHostInt32(x)
|
||||||
|
# define le64toh(x) OSSwapLittleToHostInt64(x)
|
||||||
|
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue