projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b6574
)
[libc++] NFC: Simplify incude of <cstdlib>
author
Louis Dionne
<ldionne@apple.com>
Wed, 11 Nov 2020 22:04:32 +0000
(17:04 -0500)
committer
Louis Dionne
<ldionne@apple.com>
Wed, 11 Nov 2020 22:04:32 +0000
(17:04 -0500)
We include <exception>, which includes <cstdlib> unconditionally anyway.
libcxx/include/stdexcept
patch
|
blob
|
history
diff --git
a/libcxx/include/stdexcept
b/libcxx/include/stdexcept
index
7a7f367
..
7b5de7e
100644
(file)
--- a/
libcxx/include/stdexcept
+++ b/
libcxx/include/stdexcept
@@
-42,11
+42,9
@@
public:
*/
#include <__config>
+#include <cstdlib>
#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