Fix global operator delete definition for C++14 in gc_cpp
authorIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jan 2018 05:20:02 +0000 (08:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jan 2018 05:20:02 +0000 (08:20 +0300)
commit3150107d3e12b06764e3fd4598cef0652e127b3c
treefbdcaaab7d848c35f03ba7cd18c32198297ba3ce
parentffe92c3e77cc29f543f6a54a6213c7f9191571f9
Fix global operator delete definition for C++14 in gc_cpp

Issue #195 (bdwgc).

Sized variants of global operator delete should be defined along with
the non-sized ones.  Otherwise compiler might invoke the one from the
standard library (as observed in e.g. Cygwin) leading to a crash.

* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L] (operator delete):
Define sized variant (the size argument is ignored for now).
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L && GC_OPERATOR_NEW_ARRAY
&& !CPPCHECK] (operator delete[]): Likewise.
gc_cpp.cc