r263426 - in /branches/gcc-7-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Aug 8 15:53:00 GMT 2018


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



More information about the Libstdc++-cvs mailing list