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/stdexcept | |
| 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/stdexcept')
| -rw-r--r-- | libcxx/include/stdexcept | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/stdexcept b/libcxx/include/stdexcept index 684578ffb96..b78d5d60273 100644 --- a/libcxx/include/stdexcept +++ b/libcxx/include/stdexcept @@ -45,6 +45,9 @@ public: #include <__config> #include <exception> #include <iosfwd> // for string forward decl +#ifdef _LIBCPP_NO_EXCEPTIONS +#include <cstdlib> +#endif #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header |

