This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r263426 - in /branches/gcc-7-branch/libstdc++-v...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 08 Aug 2018 15:53:26 -0000
- Subject: r263426 - in /branches/gcc-7-branch/libstdc++-v...
Author: redi
Date: Wed Aug 8 15:53:25 2018
New Revision: 263426
URL: https://gcc.gnu.org/viewcvs?rev=263426&root=gcc&view=rev
Log:
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 libc version 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.
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/libsupc++/new_opa.cc