Revert r280743 and r280745. Remove <cstdlib> include from `<exception>`
authorEric Fiselier <eric@efcs.ca>
Tue, 6 Sep 2016 21:06:41 +0000 (21:06 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 6 Sep 2016 21:06:41 +0000 (21:06 +0000)
Apparently I missed a number of additional include which need to be added.
Reverting so I can recommit as a single patch with all of the required includes.

llvm-svn: 280752

libcxx/include/exception
libcxx/include/typeinfo

index 686e4ec..a130bca 100644 (file)
@@ -80,6 +80,10 @@ template <class E> void rethrow_if_nested(const E& e);
 #include <__config>
 #include <cstddef>
 #include <type_traits>
+#if defined(_LIBCPP_NO_EXCEPTIONS)
+#include <cstdio>
+#include <cstdlib>
+#endif
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
index 0c6dfe3..d3155e4 100644 (file)
@@ -61,7 +61,6 @@ public:
 #include <exception>
 #include <cstddef>
 #include <cstdint>
-#include <cstdlib>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header