From 0d3a6719b8d924ea663f95e3e2fb834cbd80c6a5 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 15 Apr 2013 16:45:42 +0100 Subject: Fix building with libc++. - Purged std::tr1::strlower (was never used). - Moved std::tr1::insensitive to irc::insensitive. - Added TR1NS macro to point to the correct C++ TR1 namespace. --- src/modules/m_spanningtree/utils.h | 2 +- src/modules/m_watch.cpp | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/utils.h b/src/modules/m_spanningtree/utils.h index f67a0d3c1..36c161287 100644 --- a/src/modules/m_spanningtree/utils.h +++ b/src/modules/m_spanningtree/utils.h @@ -35,7 +35,7 @@ class SpanningTreeUtilities; /* This hash_map holds the hash equivalent of the server * tree, used for rapid linear lookups. */ -typedef std::tr1::unordered_map server_hash; +typedef TR1NS::unordered_map server_hash; typedef std::set TreeServerList; diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 60ea79a83..fdb20be2d 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -92,12 +92,7 @@ * of users using WATCH. */ -/* - * Before you start screaming, this definition is only used here, so moving it to a header is pointless. - * Yes, it's horrid. Blame cl for being different. -- w00t - */ - -typedef std::tr1::unordered_map, irc::hash> watchentries; +typedef TR1NS::unordered_map, irc::hash> watchentries; typedef std::map watchlist; /* Who's watching each nickname. -- cgit v1.2.3