[cfe-commits] [libcxxabi] r151261 - /libcxxabi/trunk/src/cxa_handlers.cpp

Howard Hinnant hhinnant at apple.com
Thu Feb 23 09:25:35 PST 2012


Author: hhinnant
Date: Thu Feb 23 11:25:34 2012
New Revision: 151261

URL: http://llvm.org/viewvc/llvm-project?rev=151261&view=rev
Log:
And the handlers should be extern C.

Modified:
    libcxxabi/trunk/src/cxa_handlers.cpp

Modified: libcxxabi/trunk/src/cxa_handlers.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_handlers.cpp?rev=151261&r1=151260&r2=151261&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_handlers.cpp (original)
+++ libcxxabi/trunk/src/cxa_handlers.cpp Thu Feb 23 11:25:34 2012
@@ -85,10 +85,15 @@
     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
 {





More information about the cfe-commits mailing list