Move rtti hacks.

This commit is contained in:
David Anderson 2014-08-22 00:41:32 -07:00
parent dcd246c7ef
commit 6291374b35
2 changed files with 27 additions and 26 deletions

View File

@ -553,3 +553,30 @@ extern "C" void sp_fdbg_ntv_hook(int index, symbol *sym)
native->ret_tag = sym->tag;
}
#if defined __linux__ || defined __APPLE__
extern "C" void __cxa_pure_virtual(void)
{
}
void *operator new(size_t size)
{
return malloc(size);
}
void *operator new[](size_t size)
{
return malloc(size);
}
void operator delete(void *ptr)
{
free(ptr);
}
void operator delete[](void * ptr)
{
free(ptr);
}
#endif

View File

@ -128,29 +128,3 @@ RemoveFromHashTable(HashTable *ht, symbol *sym)
assert(r.found());
ht->remove(r);
}
#if defined __linux__ || defined __APPLE__
extern "C" void __cxa_pure_virtual(void)
{
}
void *operator new(size_t size)
{
return malloc(size);
}
void *operator new[](size_t size)
{
return malloc(size);
}
void operator delete(void *ptr)
{
free(ptr);
}
void operator delete[](void * ptr)
{
free(ptr);
}
#endif