majek / bitsliced-siphash

SipHash - bitsliced!
https://idea.popcount.org/2013-01-30-bitsliced-siphash/
0 stars 0 forks source link

Compilation fails on FreeBSD #1

Open fasf opened 10 years ago

fasf commented 10 years ago
#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

Tested on FreeBSD only, but in general it should work.

fasf commented 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...