smhasher icon indicating copy to clipboard operation
smhasher copied to clipboard

PMurHash.c on Solaris

Open GoogleCodeExporter opened this issue 11 years ago • 0 comments

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 [email protected] on 15 Oct 2014 at 8:48

GoogleCodeExporter avatar Mar 16 '15 19:03 GoogleCodeExporter