From fb8e088927324a570475577fac5041883f0045a6 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 4 Nov 2010 16:26:43 +0000 Subject: [PATCH] Added dummy __cxa_atexit() and __cxa_finalize() to the kernel. We might actually implement those, if we decide to support global constructors/destructors in kernel add-ons. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39300 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/util/kernel_cpp.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/system/kernel/util/kernel_cpp.cpp b/src/system/kernel/util/kernel_cpp.cpp index cdeffeb62f..1fdbb4d7f2 100644 --- a/src/system/kernel/util/kernel_cpp.cpp +++ b/src/system/kernel/util/kernel_cpp.cpp @@ -56,6 +56,20 @@ __cxa_pure_virtual() panic("pure virtual function call\n"); } + +extern "C" int +__cxa_atexit(void (*hook)(void*), void* data, void* dsoHandle) +{ + return 0; +} + + +extern "C" void +__cxa_finalize(void* dsoHandle) +{ +} + + #endif // full C++ support in the kernel