diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-08-08 16:16:43 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-08-08 16:16:43 +0100 |
commit | a801991954f70fb9470502d305065719849c5660 (patch) | |
tree | 6140734fa914c13ae1a56deaea9d7838f55e0cdb /libcpp/line-map.c | |
parent | 8e09a12f016e53f1edadc10db22806937d3b8894 (diff) | |
download | gcc-a801991954f70fb9470502d305065719849c5660.tar.gz |
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
Diffstat (limited to 'libcpp/line-map.c')
0 files changed, 0 insertions, 0 deletions