Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2016-03-19 20:45:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-03-23 13:51:22 +0300
commit93c13ec6cc5e46eac9ba2571f9e5c3d1cee91d2e (patch)
treec1a74c63dbc7a217b402ba090cf473ffb180613a
parent3737bc4e98fa698bc094863bb890272d4979822d (diff)
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>
-rw-r--r--winsup/cygwin/cxx.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc
index 0faeaf7ee..df7491b42 100644
--- a/winsup/cygwin/cxx.cc
+++ b/winsup/cygwin/cxx.cc
@@ -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)