[libcxx] r280752 - Revert r280743 and r280745. Remove <cstdlib> include from `<exception>`

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 6 14:06:41 PDT 2016


Author: ericwf
Date: Tue Sep  6 16:06:41 2016
New Revision: 280752

URL: http://llvm.org/viewvc/llvm-project?rev=280752&view=rev
Log:
Revert r280743 and r280745. Remove <cstdlib> include from `<exception>`

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.

Modified:
    libcxx/trunk/include/exception
    libcxx/trunk/include/typeinfo

Modified: libcxx/trunk/include/exception
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/exception?rev=280752&r1=280751&r2=280752&view=diff
==============================================================================
--- libcxx/trunk/include/exception (original)
+++ libcxx/trunk/include/exception Tue Sep  6 16:06:41 2016
@@ -80,6 +80,10 @@ template <class E> void rethrow_if_neste
 #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

Modified: libcxx/trunk/include/typeinfo
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/typeinfo?rev=280752&r1=280751&r2=280752&view=diff
==============================================================================
--- libcxx/trunk/include/typeinfo (original)
+++ libcxx/trunk/include/typeinfo Tue Sep  6 16:06:41 2016
@@ -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




More information about the cfe-commits mailing list