Closed rawmean closed 8 years ago
Change the include line to the following:
#if defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define bswap_16 OSSwapInt16
#define bswap_32 OSSwapInt32
#define bswap_64 OSSwapInt64
#else
#include <byteswap.h>
#endif
worked for me on Yosemite
byteswap.h has been removed from the new commit, so I would temporary close it until it occurs again
byteswap.h is not portable and is not included in OSX so the code does not compile on OS X anymore.