summaryrefslogtreecommitdiff
path: root/src/cxa_handlers.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-02-23 17:25:34 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-02-23 17:25:34 +0000
commitff94a3ab3ac34b588c6fe3b6e2428407c939ad21 (patch)
tree8a14b20867f2dceae43763864a7842bdbad5d901 /src/cxa_handlers.cpp
parentfdac5f9274eb4854820f45e7991099706a00504b (diff)
And the handlers should be extern C.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@151261 91177308-0d34-0410-b5e6-96231b3b80d8
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
{