mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
Rely on C++17 <new> in new-op.cc
gdbsupport/new-op.cc has a comment about relying on the C++-17 <new> header. This patch implements the suggestion. Approved-By: Pedro Alves <pedro@palves.net>
This commit is contained in:
parent
b096524827
commit
553b78748f
@ -27,11 +27,6 @@
|
||||
#include "host-defs.h"
|
||||
#include <new>
|
||||
|
||||
/* These are declared in <new> starting C++14. Add these here to enable
|
||||
compilation using C++11. */
|
||||
extern void operator delete (void *p, std::size_t) noexcept;
|
||||
extern void operator delete[] (void *p, std::size_t) noexcept;
|
||||
|
||||
/* Override operator new / operator new[], in order to internal_error
|
||||
on allocation failure and thus query the user for abort/core
|
||||
dump/continue, just like xmalloc does. We don't do this from a
|
||||
|
Loading…
Reference in New Issue
Block a user