summaryrefslogtreecommitdiff
path: root/src/third_party/s2/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/s2/hash.h')
-rw-r--r--src/third_party/s2/hash.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/third_party/s2/hash.h b/src/third_party/s2/hash.h
index 61c3b409955..48c6cb42abd 100644
--- a/src/third_party/s2/hash.h
+++ b/src/third_party/s2/hash.h
@@ -1,16 +1,14 @@
#ifndef THIRD_PARTY_S2_HASH_H_
#define THIRD_PARTY_S2_HASH_H_
-#include "mongo/platform/hash_namespace.h"
+#include <unordered_map>
+#define hash_map std::unordered_map
-#include "mongo/platform/unordered_map.h"
-#define hash_map mongo::unordered_map
+#include <unordered_set>
+#define hash_set std::unordered_set
-#include "mongo/platform/unordered_set.h"
-#define hash_set mongo::unordered_set
-
-#define HASH_NAMESPACE_START MONGO_HASH_NAMESPACE_START
-#define HASH_NAMESPACE_END MONGO_HASH_NAMESPACE_END
+#define HASH_NAMESPACE_START namespace std {
+#define HASH_NAMESPACE_END }
// Places that hash-related functions are defined:
// end of s2cellid.h for hashing on S2CellId