Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-02-23 21:25:34 +0400
committerHoward Hinnant <hhinnant@apple.com>2012-02-23 21:25:34 +0400
commit2d809ac7346dde7bd2602300c29e2cd9bd9e9e61 (patch)
treee92818d198659e490296d9a018f96505937977a9 /libcxxabi/src/cxa_handlers.cpp
parentaae960d978040a9a42d44daac621c711001b937d (diff)
And the handlers should be extern C.
llvm-svn: 151261
Diffstat (limited to 'libcxxabi/src/cxa_handlers.cpp')
-rw-r--r--libcxxabi/src/cxa_handlers.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_handlers.cpp b/libcxxabi/src/cxa_handlers.cpp
index e114de3c3225..ab41db44d451 100644
--- a/libcxxabi/src/cxa_handlers.cpp
+++ b/libcxxabi/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
{