summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cxa_handlers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cxa_handlers.cpp b/src/cxa_handlers.cpp
index 3f78131..ce2cfba 100644
--- a/src/cxa_handlers.cpp
+++ b/src/cxa_handlers.cpp
@@ -104,7 +104,9 @@ terminate() _NOEXCEPT
// In the future this will become:
// std::atomic<std::new_handler> __cxa_new_handler(0);
-extern "C" _LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0;
+extern "C" {
+_LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0;
+}
new_handler
set_new_handler(new_handler handler) _NOEXCEPT