Add le64toh to compat.h for bladerf support on osx

This commit is contained in:
Oliver Jowett 2020-08-07 14:32:24 +08:00
parent 1174841f71
commit 799b568dfb
1 changed files with 1 additions and 0 deletions

View File

@ -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>