Make 64bit fnv optional.
[awesomized/libmemcached] / libhashkit / hsieh.cc
index 35a2e2096c23d5c2f300a9ca877b095cc45aaabd..f70679098630f41e2def14898f5377c0bc684fd5 100644 (file)
@@ -17,7 +17,8 @@
                       +(uint32_t)(((const uint8_t *)(d))[0]) )
 #endif
 
-uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context __attribute__((unused)))
+#ifdef HAVE_HSIEH_HASH
+uint32_t hashkit_hsieh(const char *key, size_t key_length, void *)
 {
   uint32_t hash = 0, tmp;
   int rem;
@@ -67,4 +68,9 @@ uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context __attri
 
   return hash;
 }
-
+#else
+uint32_t hashkit_hsieh(const char *, size_t , void *)
+{
+  return 0;
+}
+#endif