From 95f4f2cf6102f95abf6948d74907c44c3540eddd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Oct 2010 16:16:19 +0000 Subject: * If std::tr1::unordered_set is unavailable, use std::set. --- src/libexpr/symbol-table.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libexpr') diff --git a/src/libexpr/symbol-table.hh b/src/libexpr/symbol-table.hh index 424c2353899e..20ebe5fedbf6 100644 --- a/src/libexpr/symbol-table.hh +++ b/src/libexpr/symbol-table.hh @@ -1,8 +1,13 @@ #ifndef __SYMBOL_TABLE_H #define __SYMBOL_TABLE_H +#include "config.h" + #include + +#if HAVE_TR1_UNORDERED_SET #include +#endif #include "types.hh" @@ -60,7 +65,11 @@ inline std::ostream & operator << (std::ostream & str, const Symbol & sym) class SymbolTable { private: +#if HAVE_TR1_UNORDERED_SET typedef std::tr1::unordered_set Symbols; +#else + typedef std::set Symbols; +#endif Symbols symbols; public: -- cgit 1.4.1