summaryrefslogtreecommitdiff
path: root/src/cxa_handlers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxa_handlers.cpp')
-rw-r--r--src/cxa_handlers.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cxa_handlers.cpp b/src/cxa_handlers.cpp
index e114de3..ab41db4 100644
--- a/src/cxa_handlers.cpp
+++ b/src/cxa_handlers.cpp
@@ -85,10 +85,15 @@ static void default_unexpected_handler()
terminate();
}
+extern "C"
+{
+
terminate_handler __cxa_terminate_handler = default_terminate_handler;
unexpected_handler __cxa_unexpected_handler = default_unexpected_handler;
new_handler __cxa_new_handler = 0;
+} // extern "C"
+
unexpected_handler
set_unexpected(unexpected_handler func) _NOEXCEPT
{