summaryrefslogtreecommitdiff
path: root/stlport/systemstl/hash_map
diff options
context:
space:
mode:
Diffstat (limited to 'stlport/systemstl/hash_map')
-rw-r--r--stlport/systemstl/hash_map17
1 files changed, 12 insertions, 5 deletions
diff --git a/stlport/systemstl/hash_map b/stlport/systemstl/hash_map
index e855427f2c67..b969b11b211b 100644
--- a/stlport/systemstl/hash_map
+++ b/stlport/systemstl/hash_map
@@ -31,11 +31,14 @@
#ifndef SYSTEM_STL_HASHMAP
#define SYSTEM_STL_HASHMAP
-#define _BACKWARD_BACKWARD_WARNING_H 1
-#include <ext/hash_map>
-#undef _BACKWARD_BACKWARD_WARNING_H
-
#ifdef GCC
+
+# include <functional>
+
+# define _BACKWARD_BACKWARD_WARNING_H 1
+# include <ext/hash_map>
+# undef _BACKWARD_BACKWARD_WARNING_H
+
namespace __gnu_cxx
{
template<> struct hash < std::string >
@@ -62,14 +65,18 @@ namespace __gnu_cxx
}
};
}
+
namespace std
{
+# ifndef __GXX_EXPERIMENTAL_CXX0X__
using __gnu_cxx::hash;
+# endif
using __gnu_cxx::hash_map;
using __gnu_cxx::hash_multimap;
}
+
#else
-#error UNSUPPORTED COMPILER
+# error UNSUPPORTED COMPILER
#endif