summaryrefslogtreecommitdiffstats
path: root/libcxx/src/support/runtime/new_handler_fallback.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src/support/runtime/new_handler_fallback.ipp')
-rw-r--r--libcxx/src/support/runtime/new_handler_fallback.ipp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libcxx/src/support/runtime/new_handler_fallback.ipp b/libcxx/src/support/runtime/new_handler_fallback.ipp
index 75f985d3914..b7092d542d9 100644
--- a/libcxx/src/support/runtime/new_handler_fallback.ipp
+++ b/libcxx/src/support/runtime/new_handler_fallback.ipp
@@ -8,8 +8,6 @@
//
//===----------------------------------------------------------------------===//
-#include <__atomic_support>
-
namespace std {
_LIBCPP_SAFE_STATIC static std::new_handler __new_handler;
@@ -17,13 +15,13 @@ _LIBCPP_SAFE_STATIC static std::new_handler __new_handler;
new_handler
set_new_handler(new_handler handler) _NOEXCEPT
{
- return __libcpp_sync_lock_test_and_set(&__new_handler, handler);
+ return __sync_lock_test_and_set(&__new_handler, handler);
}
new_handler
get_new_handler() _NOEXCEPT
{
- return __libcpp_sync_fetch_and_add<new_handler>(&__new_handler, nullptr);
+ return __sync_fetch_and_add(&__new_handler, nullptr);
}
} // namespace std
OpenPOWER on IntegriCloud