diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-09-06 21:25:27 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-09-06 21:25:27 +0000 |
commit | b683ec20e4e1abc63778a7fff3506f4be8b15f37 (patch) | |
tree | 5be72bd12b57c3c52667e69a0e2793e080859373 /libcxx/include/new | |
parent | 5b0fb8f4d5299fcdcf9f4049d45aa9382c590244 (diff) | |
download | bcm5719-llvm-b683ec20e4e1abc63778a7fff3506f4be8b15f37.tar.gz bcm5719-llvm-b683ec20e4e1abc63778a7fff3506f4be8b15f37.zip |
Try 2 - Remove <cstdlib> include from `<exception>`
This patch removes the `<cstdlib>` include from exception where it is no longer
needed. Unlike my previous attempt this patch also adds <cstdlib> where needed
in other headers like <new> and <typeinfo>.
This won't fix the Firefox build issues discussed on IRC but it is more correct
for libc++.
llvm-svn: 280754
Diffstat (limited to 'libcxx/include/new')
-rw-r--r-- | libcxx/include/new | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/new b/libcxx/include/new index 95208671270..936f9ee0b40 100644 --- a/libcxx/include/new +++ b/libcxx/include/new @@ -69,6 +69,9 @@ void operator delete[](void* ptr, void*) noexcept; #include <__config> #include <exception> #include <cstddef> +#ifdef _LIBCPP_NO_EXCEPTIONS +#include <cstdlib> +#endif #include <__undef___deallocate> |