diff options
-rw-r--r-- | include/Support/HashExtras.h | 2 | ||||
-rw-r--r-- | include/Support/hash_map | 6 | ||||
-rw-r--r-- | include/Support/hash_set | 6 | ||||
-rw-r--r-- | include/llvm/ADT/HashExtras.h | 2 |
4 files changed, 14 insertions, 2 deletions
diff --git a/include/Support/HashExtras.h b/include/Support/HashExtras.h index d7e48a3b62..da9e3f5cba 100644 --- a/include/Support/HashExtras.h +++ b/include/Support/HashExtras.h @@ -11,7 +11,7 @@ #define LLVM_SUPPORT_HASHEXTRAS_H #include <string> -#include <ext/hash_map> +#include <Support/hash_map> // Cannot specialize hash template from outside of the std namespace. namespace std { diff --git a/include/Support/hash_map b/include/Support/hash_map new file mode 100644 index 0000000000..aefcc289e2 --- /dev/null +++ b/include/Support/hash_map @@ -0,0 +1,6 @@ +#if __GNUC__ == 3 +#include <ext/hash_map> +using __gnu_cxx::hash_map; +#else +#include <hash_map> +#endif diff --git a/include/Support/hash_set b/include/Support/hash_set new file mode 100644 index 0000000000..f95cc363c7 --- /dev/null +++ b/include/Support/hash_set @@ -0,0 +1,6 @@ +#if __GNUC__==3 +#include <ext/hash_set> +using __gnu_cxx::hash_set; +#else +#include <hash_set> +#endif diff --git a/include/llvm/ADT/HashExtras.h b/include/llvm/ADT/HashExtras.h index d7e48a3b62..da9e3f5cba 100644 --- a/include/llvm/ADT/HashExtras.h +++ b/include/llvm/ADT/HashExtras.h @@ -11,7 +11,7 @@ #define LLVM_SUPPORT_HASHEXTRAS_H #include <string> -#include <ext/hash_map> +#include <Support/hash_map> // Cannot specialize hash template from outside of the std namespace. namespace std { |