X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fjenkins_hash.c;h=e4aa4f19da0b4535535260516ed0c670c43679a5;hb=3928e14fbe1ed17cefe9bdbbb282fb7ecf053e7a;hp=e84cf3edefc0af9c829f792e933e4dfe60611cd4;hpb=ef9ddf55563059fcf3608bab479e15f28e9ceb0f;p=m6w6%2Flibmemcached diff --git a/libmemcached/jenkins_hash.c b/libmemcached/jenkins_hash.c index e84cf3ed..e4aa4f19 100644 --- a/libmemcached/jenkins_hash.c +++ b/libmemcached/jenkins_hash.c @@ -63,7 +63,7 @@ uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval) a = b = c = 0xdeadbeef + ((uint32_t)length) + initval; u.ptr = key; -#ifdef BYTEORDER_LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN if ((u.i & 0x3) == 0) { const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ @@ -202,7 +202,7 @@ uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval) case 0 : return c; default : return c; } -#ifdef BYTEORDER_LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN } #endif