aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-09-26 21:50:25 +0000
committerIan Lance Taylor <iant@google.com>2006-09-26 21:50:25 +0000
commit274e99f9ae3f56ab0364b3d0947b91deeb3528e1 (patch)
tree18a06078f9c3e8de23428680a5e30437497d19b8 /gold/stringpool.h
parentd288e464ac39ad965115c86ba29c7dc07ed9f5d6 (diff)
downloadgdb-274e99f9ae3f56ab0364b3d0947b91deeb3528e1.zip
gdb-274e99f9ae3f56ab0364b3d0947b91deeb3528e1.tar.gz
gdb-274e99f9ae3f56ab0364b3d0947b91deeb3528e1.tar.bz2
g++ 3.2.2 portability fixes.
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r--gold/stringpool.h6
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_;
};