summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src/stdexcept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcxx/src/stdexcept.cpp')
-rw-r--r--lib/libcxx/src/stdexcept.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcxx/src/stdexcept.cpp b/lib/libcxx/src/stdexcept.cpp
index 0a08bfec27e..5e06e521e40 100644
--- a/lib/libcxx/src/stdexcept.cpp
+++ b/lib/libcxx/src/stdexcept.cpp
@@ -7,19 +7,21 @@
//
//===----------------------------------------------------------------------===//
-#include "__refstring"
#include "stdexcept"
#include "new"
#include "string"
#include "system_error"
+#include "include/refstring.h"
/* 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
{