summaryrefslogtreecommitdiffstats
path: root/libcxx/src/new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src/new.cpp')
-rw-r--r--libcxx/src/new.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp
index f24014d22df..fa0331a8b71 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -224,6 +224,8 @@ bad_array_new_length::what() const _NOEXCEPT
#endif // _LIBCPPABI_VERSION
+#ifndef LIBSTDCXX
+
void
__throw_bad_alloc()
{
@@ -232,4 +234,6 @@ __throw_bad_alloc()
#endif
}
+#endif // !LIBSTDCXX
+
} // std
OpenPOWER on IntegriCloud