diff --git a/rts/Hash.c b/rts/Hash.c
index 35ee26ce0b8f09f196fc900cef1e5c79dba70838..e505d04fa0415ef07eed5e56223e4bca05a63110 100644
--- a/rts/Hash.c
+++ b/rts/Hash.c
@@ -99,7 +99,7 @@ int
 hashStr(const HashTable *table, StgWord w)
 {
     const char *key = (char*) w;
-#if defined(x86_64_HOST_ARCH)
+#if WORD_SIZE_IN_BITS == 64
     StgWord h = XXH3_64bits_withSeed (key, strlen(key), 1048583);
 #else
     StgWord h = XXH32 (key, strlen(key), 1048583);