Add c++14 sized deallocation operator

When compiling with -std=c++14 (the default for gcc 6.0+), the sized
deallocation operator must be defined to prevent undefined symbols when
linking.

winsup/cygwin/ChangeLog:
cxx.cc (operator delete(void *p, size_t)): Define.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
This commit is contained in:
Peter Foley 2016-03-19 13:45:55 -04:00 committed by Corinna Vinschen
parent 3737bc4e98
commit 93c13ec6cc
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ operator delete (void *p)
{
free (p);
}
void
operator delete (void *p, size_t)
{
::operator delete(p);
}
void *
operator new[] (std::size_t s)