mikeagn / smhasher

Automatically exported from code.google.com/p/smhasher
0 stars 0 forks source link

PMurHash.c on Solaris #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On Solaris, with native cc, _BIG_ENDIAN or _LITTLE_ENDIAN is #define'd, but 
just #define'd; there is no numeric value. This causes tests like 
(_BIG_ENDIAN==1) (PMurHash.c:96) to fail with a "missing operand".

Perhaps choose BIG if _BIG_ENDIAN is defined and _LITTLE_ENDIAN is not defined, 
and vice versa. Using (_BIG_ENDIAN+0==1) should get around the syntax problem 
for that part of the test.

Original issue reported on code.google.com by gdu...@gmail.com on 15 Oct 2014 at 8:48