From fb3f98d165497a32eb27b8c6b060e14d7d5b585e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 29 Apr 2010 07:13:16 -0400 Subject: finish cxxabi-compat refactor perry forgot to add/edit these... --- examples/test-session.cpp | 7 ------- wirish/cxxabi-compat.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 wirish/cxxabi-compat.cpp diff --git a/examples/test-session.cpp b/examples/test-session.cpp index b760d97..3d86dc6 100644 --- a/examples/test-session.cpp +++ b/examples/test-session.cpp @@ -527,10 +527,3 @@ int main(void) { return 0; } -/* Required for C++ hackery */ -/* TODO: This really shouldn't go here... move it later - * */ -extern "C" void __cxa_pure_virtual(void) { - while(1) - ; -} diff --git a/wirish/cxxabi-compat.cpp b/wirish/cxxabi-compat.cpp new file mode 100644 index 0000000..516b112 --- /dev/null +++ b/wirish/cxxabi-compat.cpp @@ -0,0 +1,6 @@ +/* We compile with nodefaultlibs, so we need to provide an error + * handler for an empty pure virtual function */ +extern "C" void __cxa_pure_virtual(void) { + while(1) + ; +} -- cgit v1.2.3