summaryrefslogtreecommitdiff
path: root/tools/thirdparty/OpenFst/fst/lib/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/thirdparty/OpenFst/fst/lib/compat.h')
-rw-r--r--tools/thirdparty/OpenFst/fst/lib/compat.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/tools/thirdparty/OpenFst/fst/lib/compat.h b/tools/thirdparty/OpenFst/fst/lib/compat.h
index 4c27ee3..cd80e2a 100644
--- a/tools/thirdparty/OpenFst/fst/lib/compat.h
+++ b/tools/thirdparty/OpenFst/fst/lib/compat.h
@@ -27,9 +27,9 @@
#include <string>
#include <vector>
-#include <ext/hash_map>
#include <fcntl.h>
#include <pthread.h>
+#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -294,21 +294,4 @@ class MD5 {
DISALLOW_EVIL_CONSTRUCTORS(MD5);
};
-// Hashing functions
-namespace __gnu_cxx {
-
-template<> struct hash<int64> {
- size_t operator()(int64 x) const {
- return x;
- }
-};
-
-template<> struct hash<string> {
- size_t operator()(const string &s) const {
- return __stl_hash_string(s.c_str());
- }
-};
-
-} // namespace __gnu_cxx
-
#endif // FST_COMPAT_H__