From 54dc6425456514cdc00cdfef5a21a7bdacfcad2d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 26 Sep 2006 21:00:34 +0000 Subject: More section layout code. --- gold/gold.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'gold/gold.h') diff --git a/gold/gold.h b/gold/gold.h index 757449f..f52d131 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -23,8 +23,9 @@ # define N_(String) (String) #endif -// Figure out how to get a hash set and a hash map. The fallback is -// to just use set and map. +// Figure out how to get a hash set and a hash map. + +#if HAVE_TR1_UNORDERED_SET && HAVE_TR1_UNORDERED_MAP #include #include @@ -34,6 +35,26 @@ #define Unordered_set std::tr1::unordered_set #define Unordered_map std::tr1::unordered_map +#elif HAVE_EXT_HASH_MAP && HAVE_EXT_HASH_SET + +#include +#include + +#define Unordered_set __gnu_cxx::hash_set +#define Unordered_map __gnu_cxx::hash_map + +#else + +// The fallback is to just use set and map. + +#include +#include + +#define Unordered_set std::set +#define Unordered_map std::map + +#endif + namespace gold { -- cgit v1.1