Prevent internal aligned_alloc clashing with libc version
commit4f61feff8ad3615c0b686deac3852d98734ef964
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Aug 2018 15:16:43 +0000 (8 15:16 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Aug 2018 15:16:43 +0000 (8 15:16 +0000)
tree6140734fa914c13ae1a56deaea9d7838f55e0cdb
parentdd439d4a14fbbd6ece56efcdd788250153e620af
Prevent internal aligned_alloc clashing with libc version

If configure fails to detect aligned_alloc we will try to define our
own in new_opa.cc but that could clash with the libcversion in
<stdlib.h>. Use a namespace to keep them distinct.

* libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to
avoid clashing with an ::aligned_alloc function that was not detected
by configure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263409 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc