summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/cxa_handlers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/src/cxa_handlers.hpp')
-rw-r--r--libcxxabi/src/cxa_handlers.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_handlers.hpp b/libcxxabi/src/cxa_handlers.hpp
index a7f582c0085..95a320df3ae 100644
--- a/libcxxabi/src/cxa_handlers.hpp
+++ b/libcxxabi/src/cxa_handlers.hpp
@@ -10,6 +10,9 @@
// unexpected_handler, and new_handler.
//===----------------------------------------------------------------------===//
+#ifndef _CXA_HANDLERS_H
+#define _CXA_HANDLERS_H
+
#include <exception>
namespace std
@@ -24,3 +27,14 @@ void
__terminate(terminate_handler func) _NOEXCEPT;
} // std
+
+extern "C"
+{
+
+extern void (*__cxa_terminate_handler)();
+extern void (*__cxa_unexpected_handler)();
+extern void (*__cxa_new_handler)();
+
+} // extern "C"
+
+#endif // _CXA_HANDLERS_H
OpenPOWER on IntegriCloud