Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GIZA++-v2/mystl.h')
-rw-r--r--GIZA++-v2/mystl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/GIZA++-v2/mystl.h b/GIZA++-v2/mystl.h
index a3a6e41..66baa27 100644
--- a/GIZA++-v2/mystl.h
+++ b/GIZA++-v2/mystl.h
@@ -25,9 +25,13 @@ using namespace _STL;
#include <ext/hash_map>
using __gnu_cxx::hash_map;
#else
+#if __cplusplus < 201103L && !defined(_LIBCPP_VERSION)
#include <tr1/unordered_map>
-#define hash_map unordered_map
using namespace std::tr1;
+#else
+#include <unordered_map>
+#endif
+#define hash_map unordered_map
#endif
#include <vector>