2011-04-10 12:34:40 +02:00
|
|
|
#include <new.h>
|
|
|
|
|
|
|
|
void * operator new(size_t size)
|
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
2012-12-16 14:30:12 +01:00
|
|
|
void * operator new[](size_t size)
|
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
2011-04-10 12:34:40 +02:00
|
|
|
void operator delete(void * ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
2012-12-16 14:30:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void operator delete[](void * ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|
2011-04-10 12:34:40 +02:00
|
|
|
|
|
|
|
int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
|
|
|
|
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
|
|
|
|
void __cxa_guard_abort (__guard *) {};
|
|
|
|
|
|
|
|
void __cxa_pure_virtual(void) {};
|
|
|
|
|