r263413 - in /branches/gcc-8-branch/libstdc++-v...
redi@gcc.gnu.org
redi@gcc.gnu.org
Wed Aug 8 15:33:00 GMT 2018
Author: redi
Date: Wed Aug 8 15:33:36 2018
New Revision: 263413
URL: https://gcc.gnu.org/viewcvs?rev=263413&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-8-branch/libstdc++-v3/ChangeLog
branches/gcc-8-branch/libstdc++-v3/libsupc++/new_opa.cc
More information about the Gcc-cvs
mailing list