summaryrefslogtreecommitdiff
path: root/include/unordered_set
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-08-10 23:53:08 +0000
committerEric Fiselier <eric@efcs.ca>2014-08-10 23:53:08 +0000
commitb9536101dcc36995794ea81a4f74b5f132211142 (patch)
tree82539b161c5ca6d3dd8f17c32c0c14f7e76aae53 /include/unordered_set
parente48b0c40ad37cb38282e3005cfe1992922768f70 (diff)
NFC. Move definition of _LIBCPP_ASSERT into __debug header and remove external include guards.
Things done in this patch: 1. Make __debug include __config since it uses macros from it. 2. The current method of defining _LIBCPP_ASSERT is prone to redefinitions. Move the null _LIBCPP_ASSERT definition into the __debug header to prevent this. 3. Remove external <__debug> include gaurds. <__debug> guards almost all of its contents internally. There is no reason to be doing it externally. This patch should not change any functionality. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@215332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/unordered_set')
-rw-r--r--include/unordered_set2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/unordered_set b/include/unordered_set
index fd378fa07..d06629fdc 100644
--- a/include/unordered_set
+++ b/include/unordered_set
@@ -325,6 +325,8 @@ template <class Value, class Hash, class Pred, class Alloc>
#include <__hash_table>
#include <functional>
+#include <__debug>
+
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif