From 11ffde3d7e866e0a97f298f44a57966ff1f1e507 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 19 Apr 2012 01:36:12 +0000 Subject: libc++: only #include if it exists. This allows libc++ to build out of the box on Linux systems. If you're building against libc++abi, you still need to make sure it can find so it knows not to export symbols which libc++abi provides. llvm-svn: 155091 --- libcxx/src/stdexcept.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcxx/src') diff --git a/libcxx/src/stdexcept.cpp b/libcxx/src/stdexcept.cpp index b516b0ca68b..9fa4f593137 100644 --- a/libcxx/src/stdexcept.cpp +++ b/libcxx/src/stdexcept.cpp @@ -15,7 +15,11 @@ #include #include #include "system_error" + +// Use to determine whether we're linking against libc++abi. +#if __has_include() #include +#endif // Note: optimize for size -- cgit v1.2.3