summaryrefslogtreecommitdiff
path: root/contrib/libc++/src/stdexcept.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-08 19:39:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-08 19:39:03 +0000
commitaed8d94e97d1be8b4e26ce1ffb4d0547aee8ab1d (patch)
treef4b32ab9e34cda2eead99ae084f0b02d0dab6891 /contrib/libc++/src/stdexcept.cpp
parent657db61c2068b2bcc0d930546402284e2c9c9abd (diff)
parent4a2db4d30e1653093d4d8b06e8221e2f8b723507 (diff)
Notes
Diffstat (limited to 'contrib/libc++/src/stdexcept.cpp')
-rw-r--r--contrib/libc++/src/stdexcept.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/libc++/src/stdexcept.cpp b/contrib/libc++/src/stdexcept.cpp
index 0a08bfec27ec9..3f333309dd8f1 100644
--- a/contrib/libc++/src/stdexcept.cpp
+++ b/contrib/libc++/src/stdexcept.cpp
@@ -7,19 +7,21 @@
//
//===----------------------------------------------------------------------===//
-#include "__refstring"
#include "stdexcept"
#include "new"
#include "string"
#include "system_error"
+#include "__refstring"
/* For _LIBCPPABI_VERSION */
-#if defined(LIBCXX_BUILDING_LIBCXXABI) || defined(__APPLE__) || defined(LIBCXXRT)
+#if !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY) && \
+ (defined(LIBCXX_BUILDING_LIBCXXABI) || defined(__APPLE__) || defined(LIBCXXRT))
#include <cxxabi.h>
#endif
static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), "");
+
namespace std // purposefully not using versioning namespace
{