Open fasf opened 10 years ago
Aaa, stupid github.
#if defined(__APPLE__)
# include <libkern/OSByteOrder.h>
# define le64toh(x) OSSwapLittleToHostInt64(x)
#elif defined(__GLIBC__)
# include <endian.h>
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix)
# include <sys/endian.h>
#endif
And there's not even preview...
Tested on FreeBSD only, but in general it should work.