7a98470824
MK_LIBCPLUSPLUS=yes to enable). This is a work-in-progress. It works for me, but is not guaranteed to work for anyone else and may eat your dog. To build C++ using libc++, add -stdlib=libc++ to your CXX and LD flags. Bug reports welcome, bug fixes even more welcome... Approved by: dim (mentor)
15 lines
209 B
C++
15 lines
209 B
C++
#include <stdlib.h>
|
|
|
|
namespace std
|
|
{
|
|
/**
|
|
* Stub implementation of std::terminate. Used when the STL implementation
|
|
* doesn't provide one.
|
|
*/
|
|
__attribute__((weak))
|
|
void terminate()
|
|
{
|
|
abort();
|
|
}
|
|
}
|