Prevent internal aligned_alloc clashing with libc version
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Aug 2018 15:16:43 +0000 (16:16 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 8 Aug 2018 15:16:43 +0000 (16:16 +0100)
commita801991954f70fb9470502d305065719849c5660
tree6140734fa914c13ae1a56deaea9d7838f55e0cdb
parent8e09a12f016e53f1edadc10db22806937d3b8894
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.

From-SVN: r263409
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc