Use sizeof(void *) instead of __WORDSIZE

This commit is contained in:
Julien BLACHE 2010-01-09 13:39:45 +01:00
parent 613717f6b8
commit 2f99797d9a
2 changed files with 4 additions and 2 deletions

View File

@ -95,6 +95,8 @@ fi
AC_CHECK_HEADER(sys/signalfd.h, , AC_MSG_ERROR([signalfd required; glibc 2.9+ recommended]))
AC_CHECK_SIZEOF(void *)
AC_CHECK_HEADERS(getopt.h,,)
AC_CHECK_HEADERS(stdint.h,,)

View File

@ -215,7 +215,7 @@ b64_decode(const char *b64)
* as of 2010-01-03.
*/
#if __WORDSIZE == 64 /* 64bit platforms */
#if SIZEOF_VOID_P == 8 /* 64bit platforms */
uint64_t
murmur_hash64(const void *key, int len, uint32_t seed)
@ -273,7 +273,7 @@ murmur_hash64(const void *key, int len, uint32_t seed)
return h;
}
#elif __WORDSIZE == 32 /* 32bit platforms */
#elif SIZEOF_VOID_P == 4 /* 32bit platforms */
uint64_t
murmur_hash64(const void *key, int len, uint32_t seed)