mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into poseidon.(none):/home/tomas/mysql-4.1-ndb
This commit is contained in:
commit
3d6d1e0c4f
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,6 @@
|
|||
/**
|
||||
* GCC linking problem...
|
||||
*/
|
||||
#if ( __GNUC__ == 3 )
|
||||
#ifdef DEFINE_CXA_PURE_VIRTUAL
|
||||
extern "C" { int __cxa_pure_virtual() { return 0;} }
|
||||
#endif
|
||||
|
|
|
@ -5,6 +5,8 @@ extern "C" {
|
|||
void (* ndb_new_handler)() = 0;
|
||||
}
|
||||
|
||||
#ifdef USE_MYSYS_NEW
|
||||
|
||||
void *operator new (size_t sz)
|
||||
{
|
||||
void * p = malloc (sz ? sz : 1);
|
||||
|
@ -36,3 +38,5 @@ void operator delete[] (void *ptr) throw ()
|
|||
if (ptr)
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
#endif // USE_MYSYS_NEW
|
||||
|
|
Loading…
Reference in a new issue