use-util-hash.patch 796 B

1234567891011121314151617181920212223242526
  1. --- a/src/sparsehash/internal/sparseconfig.h
  2. +++ b/src/sparsehash/internal/sparseconfig.h
  3. @@ -7,10 +7,12 @@
  4. #define GOOGLE_NAMESPACE ::google
  5. /* the location of the header defining hash functions */
  6. -#define HASH_FUN_H <functional>
  7. +#ifndef HASH_FUN_H
  8. +#define HASH_FUN_H <util/generic/hash.h>
  9. +#endif
  10. /* the namespace of the hash<> function */
  11. -#define HASH_NAMESPACE std
  12. +#define HASH_NAMESPACE
  13. /* Define to 1 if you have the <inttypes.h> header file. */
  14. #define HAVE_INTTYPES_H 1
  15. @@ -37,7 +39,7 @@
  16. /* #undef HAVE___UINT16 */
  17. /* The system-provided hash function including the namespace. */
  18. -#define SPARSEHASH_HASH HASH_NAMESPACE::hash
  19. +#define SPARSEHASH_HASH HASH_NAMESPACE::THash
  20. /* Stops putting the code inside the Google namespace */
  21. #define _END_GOOGLE_NAMESPACE_ }