mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix compilation fail when DEBUG_MEM is set (#677)
This commit is contained in:
parent
01381ed084
commit
08d0a378f8
2 changed files with 14 additions and 4 deletions
|
@ -98,6 +98,18 @@ void LightClass::operator delete(void *ptr)
|
|||
Z_Free(p);
|
||||
# endif
|
||||
}
|
||||
#else
|
||||
|
||||
void *LightClass::operator new(size_t s)
|
||||
{
|
||||
return ::operator new(s);
|
||||
}
|
||||
|
||||
void LightClass::operator delete(void *ptr)
|
||||
{
|
||||
::operator delete(ptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void* LightClass::operator new(size_t size, void* placement)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue