Author: bonefish Date: 2010-11-04 17:26:43 +0100 (Thu, 04 Nov 2010) New Revision: 39300 Changeset: http://dev.haiku-os.org/changeset/39300 Modified: haiku/trunk/src/system/kernel/util/kernel_cpp.cpp Log: 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. Modified: haiku/trunk/src/system/kernel/util/kernel_cpp.cpp =================================================================== --- haiku/trunk/src/system/kernel/util/kernel_cpp.cpp 2010-11-04 16:22:11 UTC (rev 39299) +++ haiku/trunk/src/system/kernel/util/kernel_cpp.cpp 2010-11-04 16:26:43 UTC (rev 39300) @@ -56,6 +56,20 @@ 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