diff options
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r-- | gold/stringpool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h index 873c26a..79632e0 100644 --- a/gold/stringpool.h +++ b/gold/stringpool.h @@ -58,9 +58,15 @@ class Stringpool { return strcmp(p1, p2) == 0; } }; +#ifdef HAVE_TR1_UNORDERED_SET typedef Unordered_set<const char*, Stringpool_hash, Stringpool_eq, std::allocator<const char*>, true> String_set_type; +#else + typedef Unordered_set<const char*, Stringpool_hash, Stringpool_eq, + std::allocator<const char*> > String_set_type; +#endif + String_set_type string_set_; std::list<stringdata*> strings_; }; |